A Pen by Lydia Katsamberis on CodePen.
This file contains hidden or 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 tagname = 'p'; | |
| var aView = React.createClass({ | |
| render: function() { | |
| return React.DOM[tagname]({}, 'here is some content'); | |
| } | |
| }); |
This file contains hidden or 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
| BOTS = ['imakewebthings', 'jensechu__', 'spladow_ebooks', '__skalnik', '__briantford', 'daveleeeeee', 'leadfriedman', 'jpnutsbach'] | |
| bot.on_mention do |tweet, meta| | |
| # Avoid infinite reply chains (very small chance of crosstalk) | |
| next if BOTS.include?(tweet[:user][:screen_name]) && rand > 0.2 | |
| # ... | |
| end |
This file contains hidden or 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: GitStatus | |
| # Find latest version from: https://github.com/godfat/fish_prompt-gitstatus | |
| function _git_branch_name | |
| echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function _git_status_symbol | |
| set -l git_status (git status --porcelain ^/dev/null) | |
| if test -n "$git_status" |
This file contains hidden or 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
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
This file contains hidden or 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
| python -m SimpleHTTPServer 8000 |
This file contains hidden or 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
| # install perlbrew http://perlbrew.pl/ | |
| curl -L http://install.perlbrew.pl | bash | |
| # follow the instructions to set perlbrew executable globally for your shell | |
| # e.g., add the following line to your config.fish | |
| . ~/perl5/perlbrew/etc/perlbrew.fish | |
| # perlbrew should now be available to use | |
| # use perlbrew to install latest perl | |
| perlbrew install perl-5.16.0 |
This file contains hidden or 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
| ♪♪♪ ┏(・o・)┛ ♪ doin' ♪ ┗ ( ・o・) ┓ ♪ the ♪ ┏ ( ) ┛ ♪ dev ♪ ┗ (・o・ ) ┓ ♪ dance ♪ ┏(・o・)┛ ♪♪♪ |
This file contains hidden or 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
| /* ew */ | |
| body { | |
| color: red; /* all browsers, of course */ | |
| color : green\9; /* IE8 and below */ | |
| *color : yellow; /* IE7 and below */ | |
| _color : orange; /* IE6 */ | |
| } |