View gist:eff031a5f439853be490eb1e7ca6e1e8
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 React, { PropTypes } from 'react'; | |
import { Router } from 'react-router'; | |
class App extends React.Component { | |
static contextTypes = { | |
router: PropTypes.object | |
} | |
static propTypes = { | |
history: PropTypes.object.isRequired, |
View gist:052b2b3f48e871ea16be
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
list{ | |
.asset.asset_size_small { | |
width: 80px; | |
} | |
.asset.asset_size_medium { | |
width: 80px; | |
} | |
.asset.asset_size_large { | |
width: 300px; | |
} |
View gist:9177495
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
$ ./waf build | |
Waf: Entering directory `/Users/clean/Documents/aubio/build' | |
[ 49/215] cshlib: build/src/cvec.c.1.o build/src/fmat.c.1.o build/src/fvec.c.1.o build/src/io/audio_unit.c.1.o build/src/io/sink.c.1.o build/src/io/sink_apple_audio.c.1.o build/src/io/sink_sndfile.c.1.o build/src/io/sink_wavwrite.c.1.o build/src/io/source.c.1.o build/src/io/source_apple_audio.c.1.o build/src/io/source_avcodec.c.1.o build/src/io/source_sndfile.c.1.o build/src/io/source_wavread.c.1.o build/src/io/utils_apple_audio.c.1.o build/src/lvec.c.1.o build/src/mathutils.c.1.o build/src/onset/onset.c.1.o build/src/onset/peakpicker.c.1.o build/src/pitch/pitch.c.1.o build/src/pitch/pitchfcomb.c.1.o build/src/pitch/pitchmcomb.c.1.o build/src/pitch/pitchschmitt.c.1.o build/src/pitch/pitchspecacf.c.1.o build/src/pitch/pitchyin.c.1.o build/src/pitch/pitchyinfft.c.1.o build/src/spectral/fft.c.1.o build/src/spectral/filterbank.c.1.o build/src/spectral/filterbank_mel.c.1.o build/src/spectral/mfcc.c.1.o build/src/spectral/ooura_fft8g.c.1.o b |
View gist:7665604
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
console.log('OKOK1'); | |
define('timeline', ['jquery/nyt', 'underscore/nyt'], function($, _) { | |
console.log('OKOK2'); | |
var ok = _.random(0, 100); | |
console.log('OKOK', ok); | |
$('.shell').html(ok); | |
}); |
View gist:5536381
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
calculateUrl: function(){ | |
var original_location = window.location.href; | |
var has_slide_param = original_location.match(/slide=/); | |
var has_name_param = original_location.match(/name=/); | |
var has_query_param = original_location.match(/\?/); | |
var guid = this.collection.get(this.current_page)[0].guid, | |
new_url; | |
if(has_slide_param){ | |
new_url = original_location.replace(/slide=[^&$]+/,"slide="+guid); |
View gist:5041407
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
NAME | |
irbtab | |
DESCRIPTION | |
irbtab allows you to copy and paste from irb arrays to a spreadsheet (tab delimited) | |
it works on osx, linux and possibly windows. | |
SYNOPSIS | |
0) install the gem |
View gist:4990793
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
get '/*' do | |
@settings = JSON.parse(File.read(settings_path)) | |
file_path = File.join(File.dirname(@settings['promo_src']),params[:splat] ) | |
puts "OKOK:#{file_path}" | |
if File.exists?(file_path) | |
data = File.open(file_path, 'rb') { |f| f.read } | |
return [200,{"Content-type" => "text/css"},data] | |
end | |
end |
View gist:4956318
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
speakers:{ | |
president_obama:{ | |
image_url: 'http://graphics8.nytimes.com/images/2012/10/04/us/thumbs-candidates/thumbs-candidates-custom1.jpg' | |
} | |
} |
View gist:4724034
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
[ | |
{ "keys": ["ctrl+shift+."], "command": "erb" }, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} }, | |
{ "keys": ["ctrl+r"], "command": "reveal_in_side_bar" }, | |
{ "keys": ["super+alt+i"], "command": "reindent" } | |
] |
View gist:4210115
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 class ="refer"> | |
<li> | |
<a href=""></a> | |
</li> | |
</ul> |
NewerOlder