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
gource -1280x720 --seconds-per-day 0.1 --key --hide dirnames, -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -crf 1 -threads 0 -bf 0 output.mp4 |
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
tell application "Google Chrome" | |
reload active tab of window 1 | |
end tell |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
width: 100%; | |
height: 100%; | |
} | |
body { |
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
sudo rm -rf /Library/DropboxHelperTools |
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
sudo dscacheutil -flushcache | |
sudo killall -HUP mDNSResponder |
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
/* | |
Task | |
Your task will be to write a program for reversing numbers in binary. | |
For instance, the binary representation of 13 is 1101, | |
and reversing it gives 1011, which corresponds to number 11. | |
Input | |
The input contains a single line with an integer N, 1 ≤ N ≤ 1000000000. | |
Output |
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
memory_size: 8192 | |
cpu_count: 4 |
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
# Set up your custom domain to point | |
# to localhost in /etc/hosts | |
127.0.0.1 myapp.dev | |
# Enable virtual hosts in /etc/apache2/httpd.conf | |
# by uncommenting the following line | |
Include /private/etc/apache2/extra/httpd-vhosts.conf | |
# Add the mapping in /private/etc/apache2/extra/httpd-vhosts.conf | |
<VirtualHost *:80> |
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
#!/usr/local/bin/ruby | |
grep = `git grep -n #{ARGV[0]} #{ARGV[1]}` | |
interrupt = false | |
grep.each do |file_with_line| | |
exit if interrupt | |
file, line_number, line = file_with_line.split(':', 3) |
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
// maximum time that one photo stays in the panel (in ms) | |
var MAXTIME = 20000, | |
MINTIME = 8000, | |
FADETIME = 1500; | |
var FLICKR_API_PARAMS = { | |
apiKey: 'USE_YOUR_API_KEY_HERE', | |
userId: 'USE_YOUR_USER_ID_HERE', | |
tag: 'homepage', | |
perPage: '125' |
NewerOlder