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
string apiKey = "***************"; | |
string secret = "***************"; | |
SailthruClient client = new SailthruClient(apiKey, secret); | |
SailthruResponse response; | |
EmailRequest emailRequest = new EmailRequest(); | |
emailRequest.email = "praj@sailthru.com"; | |
Hashtable fieldsVar = new Hashtable(); | |
fieldsVar.Add("name", "prajwal tuladhar"); | |
fieldsVar.Add("state", "NY"); |
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
<? | |
$myvar = array(); | |
$times = 1000000; | |
$start = microtime(true); | |
for($x=0;$x<$times;$x++){ | |
if( @$myvar['test'] === null ) { } | |
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
praj-mba:ace praj$ ./Makefile.dryice.js normal | |
# ace --------- | |
copy.source.commonjs is deprecated, pass { project:... includes:...} directly as a source | |
Failed to find module: ../../../../../lib/fixoldbrowsers | |
Failed to find module: ../../../../../lib/dom | |
Failed to find module: ../../../../../lib/event | |
Failed to find module: ../../../../../editor | |
Failed to find module: ../../../../../edit_session | |
Failed to find module: ../../../../../undomanager | |
Failed to find module: ../../../../../virtual_renderer |
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
MIME-Version: 1.0 | |
Received: by 10.216.197.17 with HTTP; Fri, 5 Aug 2011 09:56:44 -0700 (PDT) | |
Date: Fri, 5 Aug 2011 12:56:44 -0400 | |
Delivered-To: sales@xyz.com | |
Message-ID: <CAH4KJn-mu2HD3q+uHNm84a668q=HcejOZP=G9cbmwTDzMch5mg@mail.gmail.com> | |
Subject: Query regarding your awesome product: XYZ | |
From: Prajwal Tuladhar <praj@infynyxx.com> | |
To: XYZ Sales <sales@xyz.com> | |
Content-Type: multipart/alternative; boundary=000e0cd4c1e87507a304a9c4fbdb |
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
(function() { | |
var a; | |
var b = function(c, d) { | |
return function() { | |
return c.apply(d, arguments) | |
} | |
}; | |
window.Sailthru = window.sailthru = a = (function() { | |
var f, e, g, d; |
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
require 'rubygems' | |
require 'date' | |
require 'json' | |
require 'sailthru' | |
api_key = "api_key" | |
api_secret = 'secret' | |
api_url = "https://api.sailthru.coma" | |
sailthru = Sailthru::SailthruClient.new(api_key, api_secret, api_url) |
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 | |
# Copyright 2010 Eric Ryan Harrison <me@ericharrison.info> | |
# Inspired by: | |
# http://daniel.haxx.se/blog/2010/12/14/add-latency-to-localhost/ | |
if [ -n "$1" ] | |
then | |
if [ "$1" = "off" ] | |
then | |
tc qdisc del dev lo root |
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
<html> | |
<head> | |
<title>Wifi Detection</title> | |
<script> | |
//http://infynyxx.com/misc/connection_detection.html | |
window.onload = function() { | |
if (navigator.connection) { | |
var connection_mapper = {}, conn = navigator.connection; | |
connection_mapper[conn.UNKNOWN] = "Unknown Connection"; | |
connection_mapper[conn.CELL_2G] = "2G connection"; |
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
MONGO_OPTS="--quiet --pairwith 192.168.1.6 --arbiter 192.168.1.5" |
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> | |
<!-- | |
Copyright 2010 Google Inc. | |
All rights reserved. | |
Original slides: | |
Marcin Wichary | |
Modifications: | |
Ernest Delgado | |
Alex Russell |