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
| /* | |
| * LedBrightness sketch | |
| * controls the brightness of LEDs on "analog" (PWM) output ports. | |
| */ | |
| class rgb_color { | |
| private: | |
| int my_r; | |
| int my_g; |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>real time feed of the bestest harlem shakes</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <style> | |
| body,a { | |
| font-family: sans-serif; |
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
| <?php include('/Applications/MAMP/cashmusic/framework/cashmusic.php'); // CASH Music ?> | |
| <?php CASHSystem::embedElement(1); // (Testing) ?> |
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 "bundler/capistrano" | |
| set :application, "ivy" | |
| default_run_options[:pty] = true | |
| # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
| set :user, "username" | |
| server "domain.com", :app, :web, :db, :primary => true | |
| set :scm, :none |
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 'rubygems' | |
| require 'sinatra' | |
| require 'dm-core' | |
| require 'dm-migrations' | |
| require 'dm-sqlite-adapter' | |
| DataMapper::setup(:default, "sqlite3://#{Dir.pwd}/todo.db") | |
| class Tag | |
| include DataMapper::Resource |
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 'rubygems' | |
| require 'sinatra' | |
| require 'datamapper' | |
| get '/' do | |
| 'Hello World' | |
| 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
| tail -f /Applications/MAMP/logs/php_error.log | while read line ; do echo $line | say ; done |
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
| <?php | |
| if (is_page('blah') { | |
| echo str_replace('"','\"', get_the_content(); | |
| } else { | |
| the_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
| <?php | |
| $parsed_end_date = str_replace('/', '-', $wgt_end_date); | |
| $end_date = date('Y-m-d H:i', strtotime($parsed_end_date)); |
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 'rubygems' | |
| require 'ticketmaster' | |
| require 'ticketmaster-lighthouse' | |
| Lighthouse.account = ARGV[0] | |
| Lighthouse.authenticate(ARGV[1],ARGV[2]) | |
| all_tickets = Lighthouse::Ticket.find(:all, :params => { :project_id => ARGV[3] }) | |
| begin | |
| File.delete("export.csv") |
NewerOlder