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
#!/bin/bash | |
echo "Hello" > /home/ubuntu/test |
This file has been truncated, but you can view the full file.
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
'use strict'; | |
var COMPILED = !0, goog = goog || {}; | |
goog.global = this; | |
goog.DEBUG = !1; | |
goog.LOCALE = "en"; | |
goog.provide = function (a) { | |
if (!COMPILED) { | |
if (goog.isProvided_(a)) | |
throw Error('Namespace "' + a + '" already declared.'); |
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
const Status BufMgr::allocBuf(unsigned int & frame) | |
{ | |
if (numUnpinnedPages() == 0) | |
return BUFFEREXCEEDED; | |
while ( 1 ) { | |
advanceClock(); // advance clock hand | |
if ( bufTable[clockHand].valid == true ) { | |
if ( bufTable[clockHand].loved == true ) { |
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
/Users/jasonberlinsky/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 183 column 9 (Psych::SyntaxError) | |
from /Users/jasonberlinsky/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' | |
from /Users/jasonberlinsky/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:119:in `parse' | |
from /Users/jasonberlinsky/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:106:in `load' | |
from /Users/jasonberlinsky/.rvm/gems/ruby-1.9.2-p180@commonplace/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:6:in `<module:LATEX>' | |
from /Users/jasonberlinsky/.rvm/gems/ruby-1.9.2-p180@commonplace/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:3:in `<top (required)>' | |
from /Users/jasonberlinsky/.rvm/gems/ruby-1.9.2-p180@commonplace/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `require' | |
from /Users/jasonberlinsky/.rvm/gems/ruby-1.9.2-p180@commonplace/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `<top (required)>' | |
from /Users/jasonberlinsky/.rvm/gems/ruby-1.9.2-p18 |
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
:javascript | |
function test() { | |
if (a) { | |
alert("Hi"); | |
} | |
} | |
%script | |
function test() { | |
if (a) { |
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
<a href="javascript: olark('api.box.show')">Live Chat</a> |
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
def create_interaction(self, client_key, client_secret, subdomain, | |
48 visitor_email, chat_description, visitor_name, subject='', | |
49 case_id=None): | |
50 | |
51 if visitor_name == '': | |
52 visitor_name = 'Olark Visitor' | |
53 | |
54 if visitor_email == '': | |
55 cust_id = self.create_lead(client_key, client_secret, subdomain, | |
56 visitor_email, visitor_name.replace(",","")) |
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
CommonPlace git:(master) ✗ rake routes | grep update_new ▸▸▸▸▸▸▸▸▸▸ | |
update_new_account PUT /account/update_new(.:format) {:controller=>"accounts", :action=>"update_new"} | |
GET /account/update_new(.:format) {:controller=>"accounts", :action=>"update_new"} |
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
def format_time(time_str,timezone_str): | |
try: | |
tz = pytz.timezone(timezone_str) | |
except UnknownTimeZoneError: | |
tz = pytz.utc | |
dt = datetime.fromtimestamp(time_str) | |
localized_time = tz.localize(dt) | |
return localized_time.strftime("%l:%M ") |
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
(gdb) continue 2010-02-26 18:43:32.515 iSave[11690:207] ( "Toshiba Satellite L505-GS5037 TruBrite 15.6-Inch Laptop (Black)", "Dell Inspiron 11 11.6-Inch Obsidian Black Laptop (Windows 7 Premium)", "ASUS Eee PC Seashell 1005PE-MU17-BK 10.1-Inch Black Netbook - Up to 11 Hours of Battery Life", "SwissGear Computer Backpack (Red)", "Belkin 36-Piece Demagnatized Computer Tool Kit with Case (Black)", "Compaq EVO N610C", "Belkin F8E062 55-Piece Computer Tool Kit with Black Case (Demagnetized Tools)", "ASUS Eee PC Seashell 1005PE-PU17-BK 10.1-Inch Black Netbook - Up to 14 Hours of Battery Life", "Harman Kardon SoundSticks II 2.1 Plug and Play Multimedia Speaker System", "ION Audio VCR 2 PC USB VHS Video to Computer Converter" ) | |
(gdb) continue | |
Program received signal: “EXC_BAD_ACCESS”. | |
(gdb) |