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
{block:Twitter} | |
<div> | |
<a href="http://twitter.com/{TwitterUsername}" class="twitter-follow-button"> | |
Follow @{TwitterUsername} | |
</a> | |
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> | |
</div> | |
{/block:Twitter} |
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
/* Kosso : March 12th 2011 | |
This the only way I managed to do this without the app crashing on resume. | |
Done slightly differently to the KS example, since they unregister the service and | |
do not use a setInterval timer. | |
*/ | |
//############ in app.js : | |
// test for iOS 4+ |
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
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
<!-- | |
Usage: just add <div class="gist">[gist URL]</div> | |
Example: <div class="gist">https://gist.github.com/1395926</div> | |
--> |
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 btn = Ti.UI.createButton({ | |
title: 'Prompt!', | |
height: 40, | |
width: 100, | |
top: 20 | |
}); | |
var lbl = Ti.UI.createLabel({ | |
text: 'Label', | |
textAlign: 'center' |
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
/** | |
A slight variant of http://rocketshake.tumblr.com/post/424849450/infinite-scroll | |
This file has been uploaded to http://static.tumblr.com/fpifyru/F4wm4bbxj/autopager.js | |
**/ | |
var tumblrAutoPager = { | |
url: "http://proto.jp/", | |
ver: "0.1.7", | |
rF: true, | |
gP: {}, |
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
// | |
// UIColor+Colours.h | |
// | |
// Created by Soemarko Ridwan on 25/05/13. | |
// Copyright (c) 2013 Soemarko Ridwan. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIColor (Colours) |
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
/**************************************************************************** | |
RoastLoggerMax6675.ino | |
This sketch is for use with MAX 6675 thermocouple interface chips. A separate sketch | |
is available for MAX 31855 chips. | |
See the "Contributed Libraries" section of http://www.arduino.cc/en/Reference/Libraries | |
for details of how to install it. | |
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> | |
<html> | |
<script> | |
var source = new EventSource('https://api.spark.io/v1/devices/[DEVICE_ID]/events/?access_token=[ACCESS_TOKEN]'); | |
source.addEventListener('logger', function(e) { | |
var p = document.createElement('p'); | |
var d = JSON.parse(e.data); | |
p.innerHTML = d.data; | |
document.body.insertBefore(p, document.body.firstChild); |
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
// | |
// Created by Soemarko Ridwan on 3/23/17. | |
// Copyright © 2017 Soemarko Ridwan. All rights reserved. | |
// | |
// Dependencies: (to simplify the code) | |
// - ActionKit: https://github.com/ActionKit/ActionKit/tree/swift3 | |
// For closure style buttons | |
// - AutoLayout Helper: https://github.com/ustwo/autolayout-helper-swift | |
// I was never a fan of interface builder, a lot more across devices. | |
// |
OlderNewer