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
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"I'm watching you"]; | |
[utterance setRate:0.1666]; | |
[utterance setPitchMultiplier:0.55]; | |
[[[AVSpeechSynthesizer alloc] init] speakUtterance:utterance]; |
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
jQuery(function(){ | |
if (window.matchMedia) { | |
if (window.matchMedia("(max-device-width: 480px)").matches) { | |
// | |
// Swaps in new mobile src for existing images | |
// Expects: <img class="mobile-src-overwrite-400" src="path/to/asset?parms=1" width="800"> | |
// Returns: <img class="mobile-src-overwrite-400" src="path/to/asset-mobile?fmt=png-alpha&wid=400&qlt=95" width="400"> | |
// | |
jQuery('[class*="mobile-src-overwrite-"]').each(function(){ |
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
jQuery(function(){ | |
if (window.matchMedia) { | |
if (window.matchMedia("(max-device-width: 480px)").matches) { | |
jQuery('.mobile-src').each(function(){ | |
var $el = jQuery(this), | |
newSrc = $el.attr('src').split('?')[0] + "-mobile?fmt=png-alpha&qlt=95"; | |
jQuery('<img>', { | |
'src': newSrc, | |
'load': function(){ |
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
for i in {1..25}; do convert original.jpg -font Helvetica -pointsize 200 -draw "gravity center fill white text 0,20 '$i'" water-marked-image-$i.jpg; done |
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
# Mac\n | |
.DS_Store\n\n | |
# Sass\n | |
.sass-cache/\n\n | |
# Node\n | |
node_modules\n | |
node_modules/\n | |
npm-debug.log |
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
Hello world! | |
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 I'm over here 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. | |
Hello world again! | |
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. |
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
// http://www.komodomedia.com/wp-content/themes/kmv4/scripts/global.js?new | |
var Sticky = function( $obj, opts ){ | |
$(window).scroll( | |
function(e){ | |
Sticky.onScroll(e, $obj, opts ); | |
}); | |
} |
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
Titanium.UI.setBackgroundColor('#000'); | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win1 = Titanium.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}); | |
var tab1 = Titanium.UI.createTab({ | |
icon:'KS_nav_views.png', | |
title:'Tab 1', | |
window:win1 |
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
Ext.regModel('ListItem', { | |
fields: [{id: 'string', name: 'text'}] | |
}); | |
Ext.setup({ | |
icon: 'icon.png', | |
tabletStartupScreen: 'tablet_startup.png', | |
phoneStartupScreen: 'phone_startup.png', | |
glossOnIcon: false, | |
onReady: function(){ |
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
<script type="text/javascript"> | |
var Person = function(){ | |
this.firstName = "Barack"; | |
this.lastName = "Obama"; | |
this.job = "President"; | |
} | |
</script> |
OlderNewer