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.Component.extend({ | |
}); |
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'; | |
import primitiveBar from '../snippets/primitives/primitive-bar' | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
primitiveBar: primitiveBar | |
}); |
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.Component.extend({ | |
willRender() { | |
console.log('rendered!') | |
}, | |
click() { | |
this.get('select')() | |
}, |
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
module.exports = function() { | |
console.log('I am a function'); | |
} |
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
<iframe src="http://sasha-project.s3.amazonaws.com/afr-prod/projects/politics/index.html" frameBorder="0" id="elec-frame" name="elec-frame" style="display:block; width:100%"></iframe> | |
<script src="js/postie.js"></script> | |
<script> | |
var $frame = $('#elec-frame') | |
var postie = new Postie(window.frames['elec-frame'], $frame.attr('src')) | |
postie.on('change:height', function(height) { $frame.height(height) }) | |
postie.on('change:hash', function(hash) { window.location.hash = hash }) | |
postie.on('set:scroll', function(size) { | |
scrollTop = size.top - ($(window).height() - size.height) / 2 |
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
csv.writer(file('data/asylum/asylumseekers_global.csv', 'w+'), delimiter=',').writerows(csv.reader(open("data/asylum/asylumseekers_global.tsv", 'Ur+'), delimiter='\t')) |
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 argparse | |
from getpass import getuser, getpass | |
from github3 import GitHub | |
user = raw_input('GitHub username: ') | |
password = '' | |
while not password: | |
password = getpass('Password for %s: ' % user) |
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
# Only compile sass per request by default, compiling requirejs is too heavy | |
PIPELINE_COMPILERS = ( | |
'pipeline.compilers.sass.SASSCompiler', | |
) | |
# Path to your sass binary and any extra arguments you want to add | |
# We add compass to get access to their wonderful sass extentions | |
PIPELINE_SASS_BINARY = '/usr/bin/sass' | |
PIPELINE_SASS_ARGUMENTS = '--compass' | |
# Dict of discreet CSS files to have |
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
# Only compile sass per request by default, compiling requirejs is too heavy | |
PIPELINE_COMPILERS = ( | |
'pipeline.compilers.sass.SASSCompiler', | |
) | |
# Path to your sass binary and any extra arguments you want to add | |
# We add compass to get access to their wonderful sass extentions | |
PIPELINE_SASS_BINARY = '/usr/bin/sass' | |
PIPELINE_SASS_ARGUMENTS = '--compass' | |
# Dict of discreet CSS files to have |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.full-screen-nav { | |
font-size: 12px; | |
// .full-screen-nav-inner | |
&-inner { | |
font-size: 12px; |
NewerOlder