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
Thank you for considering me for this role. | |
Unfortunately, I am not looking for any new opportunities at the moment. | |
I'll be sure to pass this along to anyone I run into that would fit this position. | |
Respectfully, | |
<name> |
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
void setup() { | |
system("telnetd -l /bin/sh"); | |
system("echo setup > /dev/ttyGS0"); | |
} | |
void loop() { | |
// Original code that prints out all data: | |
// system("ifconfig eth0 > /dev/ttyGS0"); | |
// Modified code to search for "inet addr" and print out the address | |
system("ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' > /dev/ttyGS0"); | |
// Sleep is used here like the "delay" function to continuously print out the address for us. |
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
// This uses Google tracking as an example | |
var interval = setInterval(function () { | |
console.log('searching..') | |
if (window._gaq) { | |
_gaq.push(['_trackPageview', 'Something']); | |
clearInterval(interval); | |
console.log('stop'); | |
} | |
}, 10); |
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
// Taken from Google. Is that evil? | |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
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 bitlyfi(url, func) { | |
var defaults = { | |
token: '', | |
longUrl: url | |
}; | |
// Build the URL to query | |
var bitly = 'https://api-ssl.bitly.com/v3/shorten?' + '&access_token=' + defaults.token + '&longUrl=' + defaults.longUrl + '&format=json&callback=?'; | |
// Utilize the bit.ly API | |
$.getJSON(bitly, function (results) { |
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
$.fn.numOnly = function() { | |
return this.each( function() { | |
// backspace(8), dot(.), tab(0) 0-9 | |
var c = [8, 0, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58]; | |
if ($(this).attr('type') === 'text') { | |
$(this).keypress( function(e) { | |
if (c.indexOf(e.which, c) == -1) { | |
e.preventDefault(); | |
} | |
}); |
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 iCheck(func){ | |
if (!(navigator.userAgent.match(/iPhone/i)) || !(navigator.userAgent.match(/iPod/i)) || !(navigator.userAgent.match(/iPad/i))) { | |
func(navigator.userAgent); | |
} | |
} | |
// Usage | |
iCheck(function(agent){ | |
// You can use a case select statement to | |
// evaluate what actions you want to do |
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
var monthAbbreviation = function(month_index){ | |
m_names = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], | |
s = m_names[month_index - 1]; | |
return s.substr(0,3).toUpperCase()); | |
}; |
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
/*! LAB.js (LABjs :: Loading And Blocking JavaScript) | |
v1.2.0 (c) Kyle Simpson | |
MIT License | |
*/ | |
(function(p){var q="string",w="head",L="body",M="script",u="readyState",j="preloaddone",x="loadtrigger",N="srcuri",E="preload",Z="complete",y="done",z="which",O="preserve",F="onreadystatechange",ba="onload",P="hasOwnProperty",bb="script/cache",Q="[object ",bw=Q+"Function]",bx=Q+"Array]",e=null,h=true,i=false,k=p.document,bc=p.location,bd=p.ActiveXObject,A=p.setTimeout,be=p.clearTimeout,R=function(a){return k.getElementsByTagName(a)},S=Object.prototype.toString,G=function(){},r={},T={},bf=/^[^?#]*\//.exec(bc.href)[0],bg=/^\w+\:\/\/\/?[^\/]+/.exec(bf)[0],by=R(M),bh=p.opera&&S.call(p.opera)==Q+"Opera]",bi=("MozAppearance"in k.documentElement.style),bj=(k.createElement(M).async===true),v={cache:!(bi||bh),order:bi||bh||bj,xhr:h,dupe:h,base:"",which:w};v[O]=i;v[E]=h;r[w]=k.head||R(w);r[L]=R(L);function B(a){return S.call(a)===bw}function U(a,b){var c=/^\w+\:\/\//,d;if(typeof a!=q)a="";if(typeof b!=q)b="";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
.js {} | |
.no-js {} | |
.flexbox {} | |
.no-flexbox {} | |
.canvas {} | |
.no-canvas {} | |
.canvastext {} | |
.no-canvastext {} | |
.webgl {} | |
.no-webgl {} |
OlderNewer