replace text in multiple files
`sed -e 's/toreplace/replacement/' -i filename*`
Today's Document

Discoholic πͺ©

Andulka

Janaina Medeiros
cherry valley forever
Three Goblin Art
taylor price
Peter Solarz
Cosimo Galluzzi

romaβ

if i look back, i am lost
tumblr dot com

β
AnasAbdin


sheepfilms
will byers stan first human second
seen from France
seen from United Kingdom
seen from Australia

seen from Brazil
seen from United States
seen from Australia
seen from Portugal
seen from United Kingdom
seen from United States

seen from Malaysia

seen from Malaysia

seen from Australia

seen from United Kingdom

seen from Germany

seen from United Kingdom

seen from Germany
seen from Canada

seen from United States

seen from Italy
seen from United States
@developermovement
replace text in multiple files
`sed -e 's/toreplace/replacement/' -i filename*`

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch β’ No registration required β’ HD streaming
Python pprint
`from pprint import pprint` `pprint (foo)` pretty print objects in python
Get font name in ubuntu
`fc-match -s "monospace"`
Setting font in terminator
Edit or add the file ~/.config/terminator/config
Add the lines:
use_system_font = False
font = monfur 10
wtf puppet, npm and bower don't have modules
Why can't I find puppet modules for handling npm packages or bower packages? Surely some nerd has solved this problem already. Open source. Pfft. More like hard to fucking source.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch β’ No registration required β’ HD streaming
Puppet and bower
If you don't define a user in your puppet script exec block, it defaults to running as root ie super user. Bower by default doesn't run scripts scripts as root. It does give a warning but who reads that shit. 2 options. 1. Add --allow-root to the bower install exec block cmd, or 2. Set a user option in the puppet exec block
Bower
To install packages in a different directory, Just defined a .bowerrc file. Setup your packages in bower.json This is Json, not JavaScript so watch your trailing commas If your running from non interactive script and have conflicts. Eg puppet setup using bootstrap and jquery 1.9. Define a resolutions property so bower doesn't prompt you. Running bower by hand and adding ! before your choice (eg !2) will update bower.json for you
.net to angular tools
Bower == Nuget Grunt == nant Yo == scaffolding.
Emacs Regex OR
Or in Emacs reges required escaping the pipe EG. word1\|word2 This is double so if using M-x re-builder EG. word1\\|word2

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch β’ No registration required β’ HD streaming
Python machine
For syntax ans style checking
Added pyflakes and pep8 with easy_install
sudo easy_install pyflakes
sudo easy_install pep8
Added to ./emacs
(add-to-list 'exec-path "/Library/Frameworks/Python.framework/Versions/2.7/bin/")
and
`;; pyflakes and pep8 (when (load "flymake" t) (defun flymake-pyflakes-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) (list "pyflakes" (list local-file)) (list "pep8" (list local-file)) ))
(add-to-list 'flymake-allowed-file-name-masks '("\.py\'" flymake-pyflakes-init)))
(add-hook 'find-file-hook 'flymake-find-file-hook)`
Maintaining different version of python with:
sudo easy_install virtualenv
View all installed packages:
sudo easy_install yolk
JS Lint Error
Calling an immediate function
Wrap an immediate function invocation in parentheses to assist the reader in understanding that the expression is the result of a function, and not the function itself.
'var foo = function () { console.log("this will jslint error"); }();'
'var foo = (function () { console.log("this will not"); }());'
Extended object will break foreach loops
The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
This is a check to make sure the object in the loop is not an extended property
'var key; for (key in payload) { if (payload.hasOwnProperty(key)) { MediaProvider.setResource(key, payload[key]); } }'
Some libraries require dangling
Unexpected dangling '' in ''.
Disable this setting nomen to true
Hoist my local vars
Combine this with the previous 'var' statement
The compiler will hoist var to the top of local scope. Move var declaration to top of method.
angular document ready and startup
angular.element(document).ready(function () { angular.bootstrap(document, ['ngMongo']; });
Angularjs document ready equivalent and bootstrap angular to the whole document.
Fetch some data to load into an angular configuration, before bootstrapping.
What to do today?
Two real options Finish the angularjs stuff Watch a few more videos and finish the demo Or setup an emacs python environment. This could be useful but I'm not sure of the tools that are being used. Especially the testing framework. Should be able to setup a generic tools set thought.
python emacs setup
Python environment needs to...
Auto complete with python keywords
Inline syntax & formatting
Unit testing (TDD) for python in emacs?
Refactoring tools.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch β’ No registration required β’ HD streaming