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
<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 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
#!/bin/bash | |
# Copyright 2010 Eric Ryan Harrison <[email protected]> | |
# 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 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 '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 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
(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 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
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: [email protected] | |
Message-ID: <CAH4KJn-mu2HD3q+uHNm84a668q=HcejOZP=G9cbmwTDzMch5mg@mail.gmail.com> | |
Subject: Query regarding your awesome product: XYZ | |
From: Prajwal Tuladhar <[email protected]> | |
To: XYZ Sales <[email protected]> | |
Content-Type: multipart/alternative; boundary=000e0cd4c1e87507a304a9c4fbdb |
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
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 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
<? | |
$myvar = array(); | |
$times = 1000000; | |
$start = microtime(true); | |
for($x=0;$x<$times;$x++){ | |
if( @$myvar['test'] === null ) { } | |
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
string apiKey = "***************"; | |
string secret = "***************"; | |
SailthruClient client = new SailthruClient(apiKey, secret); | |
SailthruResponse response; | |
EmailRequest emailRequest = new EmailRequest(); | |
emailRequest.email = "[email protected]"; | |
Hashtable fieldsVar = new Hashtable(); | |
fieldsVar.Add("name", "prajwal tuladhar"); | |
fieldsVar.Add("state", "NY"); |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
var logFB = function(url) { | |
var login_status, _data, _fb, _get_share_count2; | |
if (url == null) url = false; | |
if (url === false) url = window.location.href; | |
_data = {}; | |
_get_share_count2 = function(url, callback) { | |
var params; | |
if (typeof window.FB !== 'undefined') { | |
window.FB.api('/', { | |
id: url |