Skip to content

Instantly share code, notes, and snippets.

Terry Morgan shodanuk

Block or report user

Report or block shodanuk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shodanuk
shodanuk / .jsbeautifyrc
Created Mar 8, 2017 — forked from thevirtualforge/.jsbeautifyrc
JS-Beautify config to aid enforcement of VF Javascript style guidelines
View .jsbeautifyrc
{
"indent_size": 4,
"indent_char": " ",
"eol": "\n",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": false,
"space_after_anon_function": false,
@shodanuk
shodanuk / .editorconfig
Created Mar 8, 2017 — forked from thevirtualforge/.editorconfig
Standard .editorconfig file to help enforce code standards
View .editorconfig
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@shodanuk
shodanuk / gist:c379f1db916ec7cbf129
Created Nov 7, 2014
TiCalabash android run script
View gist:c379f1db916ec7cbf129
if [ "$#" -ne 1 ]; then
echo
echo "Usage: run_android.sh <app_dir>"
echo
exit 1
fi
app=$1
# Uncomment the code below to check for a running Genymotion emulator
@shodanuk
shodanuk / gist:540cb5309f4a3fab7f12
Last active Aug 29, 2015
TiCalabash ios run script
View gist:540cb5309f4a3fab7f12
if [ "$#" -ne 4 ]; then
echo
echo "Usage: run_ios.sh <iphone/ipad> <7.0.3/7.1/8.1> <stop_simulator/no_stop_simulator> <app_dir>"
echo
exit 1
fi
if [ $1 = "iphone" ]; then
platform=iphone
elif [ $1 = "ipad" ]; then
@shodanuk
shodanuk / .jshintrc
Last active Aug 29, 2015 — forked from tonylukasavage/.jshintrc
A jshint config file intended for use in Titanium development
View .jshintrc
{
"predef": [
"Ti",
"Titanium",
"Alloy",
"Widget",
"describe",
"it",
"before",
"beforeEach",
@shodanuk
shodanuk / gist:2199360
Created Mar 25, 2012
Quick and dirty input placeholder shim using jQuery + Modernizr (Tested in IE7 + 8)
View gist:2199360
$('.lt-ie9 input[placeholder], .lt-ie9 textarea[placeholder]').each(function(){
var $this = $(this),
placeholder = $this.attr('placeholder');
$this.addClass('placeholder').val(placeholder);
$this.focus(function() {
$this.val('');
}).blur(function() {
if ($this.val() === '') {
@shodanuk
shodanuk / transitionCss.js
Created Mar 18, 2012
Generate cross browser transitons CSS (includes custom easing functions)
View transitionCss.js
/**
* Create cross browser transition CSS
*
* @param {Integer} duration Duration in milliseconds.
* @param {String} easing Easing function. Can be built-in CSS3 function or one of the provided custom functions.
* @param {String} prop CSS property to apply transition to.
*/
function transitionCss(duration, easing, prop) {
var easingDefs = {
easeInCubic : 'cubic-bezier(0.550, 0.055, 0.675, 0.190)',
@shodanuk
shodanuk / countriesbyregion.json
Created Dec 20, 2011
JSON object containing countries sorted by rough geographical region (2 digit ISO codes)
View countriesbyregion.json
{
"westEurope": [
"AD",
"DE",
"ES",
"FR",
"IT",
"AT",
"BE",
"CH",
@shodanuk
shodanuk / Shodan.UI.Slideshow.js
Created Mar 6, 2011
Example Javascript to invoke Shodan.UI.Slideshow
View Shodan.UI.Slideshow.js
$(document).observe('dom:loaded', function(){
new Shodan.UI.Slideshow('slideshow-demo');
});
@shodanuk
shodanuk / Shodan.UI.Slideshow.html
Created Mar 6, 2011
Example HTML markup for the Shodan.UI.Slideshow component
View Shodan.UI.Slideshow.html
<div id="slideshow-demo">
<img src="images/slideshow/Pensive Parakeet.jpg" alt="Slide 1" />
<img src="images/slideshow/Random-Penguins-random-16779663-1024-768.jpg" alt="Slide 2" />
<img src="images/slideshow/Random-Wallpapers-random-10799667-1024-768.jpg" alt="Slide 3" />
<img src="images/slideshow/Random-Wallpapers-random-10799672-1024-768.jpg" alt="Slide 4" />
</div>
You can’t perform that action at this time.