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
# -*- coding: utf-8 -*- | |
monsieurX = {'nom': 'X', 'prénom': 'Monsieur', 'age': 47} | |
print monsieurX['age'] |
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
echo "Beams of fire sweep through my head" > hello |
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 from 'react' | |
import Tooltip from 'react-portal-tooltip' | |
import {connect} from 'react-redux' | |
@connect(state => { | |
return { | |
hasError: state.get('error'), | |
} | |
}) | |
export default class Test extends React.Component { |
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
var c1 = $('#color-1'), | |
c2 = $('#color-2') | |
setInterval(function() { | |
var co1 = c1.css('background-color').replace('rgb(', '').replace(')', '').split(', '), | |
co2 = c2.css('background-color').replace('rgb(', '').replace(')', '').split(', ') | |
t1 = 0, | |
t2 = 0 | |
co1.forEach(function(x) { | |
t1 += parseInt(x, 10) | |
}) |
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
/** | |
* Simple wrapper to use the media lightbox in custom scripts | |
* | |
* Usage: | |
* | |
* openMediaLightbox(function(attachment) { | |
* // do something with attachment | |
* }) | |
*/ | |
!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
var Stream = require('stream') | |
, stream = new Stream() | |
, numberVoxel = 0 | |
var voxelCount = function(studio) { | |
studio.on('addVoxel', function() { | |
numberVoxel++ | |
stream.emit('addVoxel', numberVoxel) | |
}) |
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
<a class="icon cool-icon" href="#" qtip data-content="Check out this thing"></a> |
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
{ | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Menlo Regular", | |
"font_size": 12.0, | |
"highlight_modified_tabs": true, | |
"trim_trailing_white_space_on_save": true, | |
"translate_tabs_to_spaces": true, |