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 | |
| # | |
| # Author: @_ty | |
| # Made with <3 | |
| # | |
| class Breaky | |
| VERSION = '0.1' | |
| MSG_INTERVAL = 1 #1 hour | |
| SLEEP_INTERVAL = 3 | |
| MSG = 'Take a walk break.' |
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
| // Use for timing tests | |
| function Timer() { | |
| this.startTime = 0; | |
| this.endTime = 0; | |
| this.elapsed = 0; | |
| this.start = function() { | |
| this.startTime = Date.now(); | |
| return this; | |
| }; |
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
| /* | |
| * Author: @_ty | |
| * Tested with: 1.6.4. | |
| * | |
| * jQuery plugin for css fades. | |
| * It's usage is identical to jQuerys fadeIn, fadeOut & fadeToggle, | |
| * except you must pass in a number in ms for the duration. | |
| * | |
| * Currently this plugin assumes that you can handle | |
| * CSS3 (no detection support yet). |
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
| ERROR: Error installing viking-bloopsaphone: | |
| ERROR: Failed to build gem native extension. | |
| /Users/linuxsable/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb | |
| checking for main() in -lportaudio... yes | |
| checking for main() in -lsndfile... no | |
| creating Makefile | |
| make | |
| compiling bloopsaphone.c |
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
| import sys | |
| import time | |
| from math import sqrt | |
| def smallest(num): | |
| start_time = time.time() | |
| num = int(num) | |
| iterations = 1 | |
| rooted = sqrt(float(num)) |
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
| puts "Hello World" |
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
| def add(x, y) | |
| if x <= 0 | |
| y | |
| else | |
| add(x -= 1, y += 1) | |
| end | |
| end | |
| print add(12, 15) |
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
| import sys | |
| import time | |
| from math import sqrt | |
| def smallest2(num): | |
| start_time = time.time() | |
| num = int(num) | |
| f = factors(num) | |
| medians = median(f) |
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
| $("<img />").bind("load", function() { | |
| $self | |
| .hide() | |
| .attr("src", $self.data(settings.data_attribute))[settings.effect](settings.effect_speed); |
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
| 2012-05-17 23:36:11.884 MT16[8650:13e07] ( | |
| { | |
| contributors = "<null>"; | |
| coordinates = "<null>"; | |
| "created_at" = "Mon Jun 29 04:45:36 +0000 2009"; | |
| entities = { | |
| hashtags = ( | |
| ); | |
| urls = ( | |
| ); |