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
#!/usr/bin/env bash | |
tput setaf 8 | |
##DEFAULT environment variables | |
AZURESTORAGEACCOUNT='null' | |
AZURESTORAGEPASSWORD='null' | |
AZUREFILESHARE='elasticsearch' | |
ELASTICSEARCH_VERSION=1.4.3 | |
KIBANA_VERSION=3.1.2 #Unused currently |
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
CmdUtils.CreateCommand( | |
{ | |
name: "wiodsearch", | |
takes: {"query": noun_arb_text}, | |
icon: "http://s.wordpress.org/favicon.ico?2", | |
homepage: "http://wiod.us/", | |
author: {name: "Gustavo Tandeciarz", email: "dcinzona@gmail.com"}, | |
license: "MPL,GPL", | |
description: "Search WIOD Blog", | |
help: "Enter search", |
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
// Usage example: | |
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png | |
// | |
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]]; | |
// .h | |
@interface UIImage (IPImageUtils) | |
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color; | |
@end |
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
+(void) updateToiCloud:(NSNotification*) notificationObject { | |
NSMutableDictionary *dict = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] mutableCopy]; | |
for(NSString *keyName in dict.allKeys){ | |
NSString *keysToRemove = @"com.apple.audio.CoreAudio"; | |
NSInteger kL = keysToRemove.length; | |
if(keyName.length>kL){ | |
NSString *keySub = [keyName substringToIndex:kL]; | |
if([keySub isEqualToString:keysToRemove]){ | |
[dict removeObjectForKey:keyName]; |
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
function removeRN($string){ | |
$string = str_replace("\n", "", $string); | |
$string = str_replace("\r", "", $string); | |
return $string; | |
} |
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 | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
# Inspired by original script by incanus: | |
# https://gist.github.com/1186990 | |
# | |
# Rewritten by martijnthe: | |
# https://gist.github.com/1379127 | |
# |
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
// DataManager.h | |
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
extern NSString * const DataManagerDidSaveNotification; | |
extern NSString * const DataManagerDidSaveFailedNotification; | |
@interface DataManager : NSObject { | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Google Weather API Conditions. Compiled by Dennis Delimarsky, http://dennisdel.com/content/conditions.xml--> | |
<!--Tweaked by Brian Zerangue, February 1, 2011--> | |
<conditions> | |
<type handle="partly-sunny">Partly Sunny</type> | |
<type handle="scattered-thunderstorms">Scattered Thunderstorms</type> | |
<type handle="showers">Showers</type> | |
<type handle="scattered-showers">Scattered Showers</type> | |
<type handle="rain-and-snow">Rain and Snow</type> | |
<type handle="overcast">Overcast</type> |
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
declare @cmd varchar(4000) | |
declare cmds cursor for | |
select 'drop table [' + Table_Name + ']' | |
from INFORMATION_SCHEMA.TABLES | |
where Table_Name like 'prefix%' | |
open cmds | |
while 1=1 | |
begin | |
fetch cmds into @cmd |
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
(function () { | |
var root = $(document.getElementsByTagName('body')); | |
var watchers = []; | |
var f = function (element) { | |
if (element.data().hasOwnProperty('$scope')) { | |
angular.forEach(element.data().$scope.$$watchers, function (watcher) { | |
watchers.push(watcher); | |
}); | |
} |
OlderNewer