Skip to content

Instantly share code, notes, and snippets.

View ezodude's full-sized avatar
🪡
Making agentic apps work

Ezo Saleh ezodude

🪡
Making agentic apps work
View GitHub Profile
body{
height: 470px;
width: 320px;
}
.content, .footer{
border: 1px solid #ccc;
}
.content{
@ezodude
ezodude / 001_adjust_ios_deploy_target.js
Last active August 29, 2015 14:01
This is a Cordova CLI hook that resets an iOS deployment target in platform generated project file.
#!/usr/bin/env node
var IOS_DEPLOYMENT_TARGET = '7.0';
var fs = require("fs"),
path = require("path"),
shell = require("shelljs"),
xcode = require('xcode'),
projectRoot = process.argv[2];
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
@interface NSString (SO)
+ (NSString *)base64forData:(NSData *)data;
- (BOOL)isHexadecimal;
- (BOOL)isOnlyFromCharacterSet:(NSCharacterSet *)aCharacterSet;
//
// NSString+SO.m
//
// Created by Ezo Saleh on 04/12/2011.
//
#import "NSString+SO.h"
@implementation NSString (SO)
define(function(){
var instance = null;
function MySingleton(){
if(instance !== null){
throw new Error("Cannot instantiate more than one MySingleton, use MySingleton.getInstance()");
}
this.initialize();
}
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@ezodude
ezodude / .gitignore
Created March 4, 2013 15:34 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@ezodude
ezodude / base64.js
Created February 6, 2013 14:44 — forked from jhurliman/base64.js
/*
* base64.js: An extremely simple implementation of base64 encoding / decoding using node.js Buffers
*
* (C) 2010, Nodejitsu Inc.
* (C) 2011, Cull TV, Inc.
*
*/
var base64 = exports;
@ezodude
ezodude / gist:4707651
Created February 4, 2013 16:01
openssl .p12 to .pem
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
(function($){
var hasTouch = /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()),
eventName = hasTouch ? 'touchend' : 'click';
/**
* Bind an event handler to the "double tap" JavaScript event.
* @param {function} doubleTapHandler
* @param {number} [delay=300]
*/