This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import timeit | |
from functools import partial | |
from multiprocessing import Pool | |
from test_multi_sock import print_at_interval, print_at_async_interval | |
runs = 10 | |
sample_vals = ["hello", "world", "done"] | |
loop = asyncio.get_event_loop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# override $SHELL | |
export SHELL=$(which zsh) | |
# COLORS | |
alias ls='ls -G --color=auto' | |
alias ll='ls -hl --color=auto' | |
alias stree='CPAU -u au\brennanm -p password -ex "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe"' | |
alias open='/cygdrive/c/windows/explorer.exe' | |
# enables color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic settings | |
set -g default-terminal "screen-256color" | |
setw -g xterm-keys on | |
set -g base-index 0 | |
set -s escape-time 0 | |
setw -g mode-mouse off | |
# bindings | |
# first rebind prefix | |
unbind C-b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.tmuxinator/afamux.yml | |
name: afamux | |
root: ~/V3/v3_source | |
# Optional tmux socket | |
# socket_name: foo | |
# Runs before everything. Use it to start daemons etc. | |
pre: cd ~/V3/chef; be kitchen converge web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /Users/loadx/Desktop/before.txt 2013-12-03 15:34:03.000000000 +1100 | |
+++ /Users/loadx/Desktop/after.txt 2013-12-03 15:34:43.000000000 +1100 | |
@@ -1,4 +1,47 @@ | |
/usr/local/lib | |
+├─┬ [email protected] | |
+│ ├─┬ [email protected] | |
+│ │ └── [email protected] | |
+│ ├── [email protected] | |
+│ ├─┬ [email protected] | |
+│ │ └─┬ [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No .jshintrc file | |
vagrant@web-and-db-ubuntu-1204:/fs/ember$ brunch b | |
.jshintrc parsing error: no such file or directory '/fs/ember/.jshintrc'. jshint will run with default options. | |
26 Nov 22:20:02 - error: Linting of 'app/app.js' failed. 'import' is only available in ES6 (use esnext option). (error) at line 1, column 1 | |
'import' is only available in ES6 (use esnext option). (error) at line 2, column 1 | |
'export' is only available in ES6 (use esnext option). (error) at line 25, column 1 ; Linting of 'app/router.js' failed. 'export' is only available in ES6 (use esnext option). (error) at line 7, column 1 ; Linting of 'app/models/brokers.js' failed. 'export' is only available in ES6 (use esnext option). (error) at line 14, column 1 ; Linting of 'app/routes/index.js' failed. 'import' is only available in ES6 (use esnext option). (error) at line 1, column 1 | |
'export' is only available in ES6 (use esnext option). (error) at line 10, column 1 | |
With .jshintrc but bad syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul#items li { | |
background-color: rgba(255, 255, 255, 0.05); | |
border: 1px solid rgba(255, 255, 255, 0.16); | |
border-radius: 8px 8px 8px 8px; | |
box-shadow: 0 0 150px rgba(0, 0, 0, 0.32); | |
float: left; | |
height: auto; | |
margin: 0 15px 15px 0; | |
padding: 20px; | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Source Code Pro", | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Soda Dark.sublime-theme", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.AddContactController = Em.ArrayController.extend({ | |
init: function(){ | |
this.companies = App.store.findAll(App.Company); | |
}, | |
beginEdit: function(){ | |
// By default createRecord will add this to the ArrayProxy and it will be rendered | |
// this property allows us to toggle rendering | |
this.set('record', App.store.createRecord(App.Contact, {'visible': false})); | |
}, |
NewerOlder