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
- (UIView *)inputAccessoryView{ | |
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8) { | |
return levelinputView.view; | |
} | |
else{ | |
return nil; | |
} | |
} |
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
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
{ | |
"images" : [ | |
{ | |
"resizing" : { | |
"mode" : "9-part", | |
"center" : { | |
"mode" : "fill", | |
"width" : 2, | |
"height" : 1 | |
}, |
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
on run {input, parameters} | |
tell application "System Preferences" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
click menu item "Sharing" of menu "View" of menu bar 1 | |
delay 0 |
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 notification = window.webkitNotifications.createNotification("http://www.google.com/images/logos/ps_logo2.png", "Title", "Notification message goes here"); | |
notification.show(); |
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
<?php | |
/** | |
* @desc Class to process payment using HSBC gateway | |
* This class will return orderhash | |
* 18-Dec-2006 | |
*/ | |
class HSBC{ | |
var $storeFrontId; |
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
#!/bin/bash | |
productIds=("5108401" "5108004" "5084002" "084003" "513802" "510724" "1083800" "31083" "313725" "5084224" "82759" "11735" "1104_2" "11268" "133" "11084_2" "114189" "1721" "143" "SA058" "0848_1" "540854" "140876" "34_4" "34068" "584397" "6296" "640008" "09T-IC" "653" "54086" "1903" "3315" "54587" "54527" "B23" "SOF43-TP" ) | |
productImgs=( "productImage.png" "productImage-1.png" "productImage-2.png" "productImage-3.png" "productImage-4.png") | |
prodLen=${#productIds[@]} #productid array length | |
imgLen=${#productImgs[@]} #img array length | |
# use for loop to read all productids |
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
-(IBAction) testTapped:(id)sender{ | |
[[TKAlertCenter defaultCenter] postAlertWithMessage:NSLocalizedString(@"Before an alert", nil)]; | |
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"TEST MSG" | |
delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:nil]; | |
[av show]; | |
[av release]; |
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
/* | |
Filter Google Chrome history by search and scrap the links :) | |
*/ | |
var aTags = document.getElementsByTagName("a"); | |
var n = aTags.length; | |
for(i=0; i<n; i++){ | |
console.log(aTags[i].href); | |
} |
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 elem = document.getElementsByClassName('session_log'); | |
for (i=0;i<elem.length;i++){ | |
elem[i].style.display=""; | |
} |