[ Launch: Mailboxes data ] 5720665 by first-developer[ Launch: Mailboxes data ] 5697782 by first-developer[ Launch: Tributary inlet ] 5690774 by first-developer
Web workers are great; they provide a powerful way to run background threads on website.
I wanted to create a more convenient way to deal with them in a jQuery-esque way. This code allows you to create a web worker and returns a jQuery.Deferred extended with some of the web worker methods on the instance.
// Alias vendor prefixes to standard.
if (!window.BlobBuilder) {
window.BlobBuilder = window.WebKitBlobBuilder || window.MozBlobBuilder;
[ Launch: d3.chart examples ] 5823898 by first-developer
[ Launch: NVD3 ] 5846554 by first-developer
[ Launch: Chart legend ] 6209407 by first-developer
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
| $phone: '(max-width: 480px)'; | |
| $tablet-portrait: '(max-width: 767px)'; | |
| $tablet-landscape-desktop: '(min-width: 768px) and (max-width: 979px)'; | |
| $large-desktop: '(min-width: 1200px)'; | |
| $non-retina: 'screen and (-webkit-max-device-pixel-ratio: 1)'; | |
| $retina: 'screen and (-webkit-min-device-pixel-ratio: 2)'; | |
| @mixin respond-to($media) { | |
| @media #{$media} { | |
| @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
| # | |
| # | |
| # moche car on fait une 2nd req HTTP | |
| # mais ça doit fonctionner nickel | |
| # | |
| # | |
| upstream lb { | |
| server 127.0.0.1:1111/1a/ weight=3; | |
| server 127.0.0.1:1111/1b/ weight=2; |
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
| public class SmoothCircularIndeterminateProgressBarDrawable | |
| extends Drawable | |
| implements Animatable { | |
| private static final Interpolator ANGLE_INTERPOLATOR = new LinearInterpolator(); | |
| private static final Interpolator SWEEP_INTERPOLATOR = new DecelerateInterpolator(); | |
| private static final int ANGLE_ANIMATOR_DURATION = 2000; | |
| private static final int SWEEP_ANIMATOR_DURATION = 600; | |
| private static final int MIN_SWEEP_ANGLE = 30; | |
| private final RectF fBounds = new RectF(); |
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'rotp' | |
| require 'time' | |
| user = ARGV[0] | |
| secret = ARGV[1] | |
| abort unless user and secret | |
| trap("INT") do |
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
| require 'openssl' | |
| def gen_key(name) | |
| key = OpenSSL::PKey::RSA.new 1048 | |
| file = File.new(name, "w") | |
| file.write(key) | |
| file.close | |
| end | |
| def get_key(name) |