Skip to content

Instantly share code, notes, and snippets.

@shodanuk
shodanuk / .jshintrc
Last active August 29, 2015 14:06 — forked from tonylukasavage/.jshintrc
A jshint config file intended for use in Titanium development
{
"predef": [
"Ti",
"Titanium",
"Alloy",
"Widget",
"describe",
"it",
"before",
"beforeEach",
@shodanuk
shodanuk / gist:540cb5309f4a3fab7f12
Last active August 29, 2015 14:08
TiCalabash ios run script
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 / gist:c379f1db916ec7cbf129
Created November 7, 2014 11:24
TiCalabash android run script
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 / Pure CSS buttons
Created October 23, 2010 14:37
Nothing groundbreaking here just attractive, progressively enhanced CSS buttons. TODO: is there a way to get a gradient in Opera? Also the blur looks a bit crap in Opera. Either fix it or remove it (but only for Opera).
<style type="text/css>
p {
margin-bottom:10px
}
button {
border: 1px solid #ccc;
color: #333;
cursor: pointer;
font-size: 12px;
@shodanuk
shodanuk / Shodan.UI.SlideyPanel.html
Created February 21, 2011 15:42
Example markup for Shodan.UI.Slidey demo
<div id="sh-ui-slidey-demo">
<div class="hd">
<h3>Click me!</h3>
</div>
<div class="content">
<div class="inner">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
@shodanuk
shodanuk / Shodan.UI.SlideyPanel.js
Created February 21, 2011 15:46
Example Javascript for Shodan.UI.Slidey demo
$(document).observe("dom:loaded", function(){ // wait for DOM to load
new Shodan.UI.SlideyPanel('sh-ui-slidey-demo');
});
$(document).observe('dom:loaded', function(){
new Shodan.UI.Accordion('sh-ui-accordion-demo');
});
<div id='sh-ui-accordion-demo'>
<ul class="root">
<li>
<div class='hd'>
<h3>Item 1</h3>
</div>
<ul class='sub'>
<li>
<div class='inner'>Item 1 child 1</div>
</li>
@shodanuk
shodanuk / Shodan.UI.Slideshow.js
Created March 6, 2011 22:34
Example Javascript to invoke Shodan.UI.Slideshow
$(document).observe('dom:loaded', function(){
new Shodan.UI.Slideshow('slideshow-demo');
});
@shodanuk
shodanuk / Shodan.UI.Slideshow.html
Created March 6, 2011 22:32
Example HTML markup for the Shodan.UI.Slideshow component
<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>