Skip to content
View swipeFunc.js
var swipeFunc = {
touches : {
"touchstart": {"x":-1, "y":-1},
"touchmove" : {"x":-1, "y":-1},
"touchend" : false,
"direction" : "undetermined"
},
touchHandler: function(event) {
var touch;
if (typeof event !== 'undefined'){
View shellshock
$ # If you want to disable auto-imported functions, uncomment the following
$ # export ADD_IMPORT_FUNCTIONS_PATCH=YES
$ mkdir bash-fix
$ cd bash-fix
$ curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf -
$ cd bash-92/bash-3.2
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0
$ # See note above about ADD_IMPORT_FUNCTIONS_PATCH
$ [ "$ADD_IMPORT_FUNCTIONS_PATCH" == "YES" ] && curl http://alblue.bandlem.com/import_functions.patch | patch -p0
View Xcode console error message
2014-09-23 08:27:40.512 Rooms[7288:414440] CDVPlugin class CDVNotification (pluginName: Notification) does not exist.
2014-09-23 08:27:40.512 Rooms[7288:414440] ERROR: Plugin 'Notification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-09-23 08:27:40.512 Rooms[7288:414440] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"Notification1434422161",
"Notification",
"alert",
[
"You have to perform the setup, before you can use the application.",
"Perform Setup",
"Don't worry, it's easy"
View lotusScriptFastLoop
Option Public
Option Declare
Sub Initialize
Dim s As New NotesSession
Dim db As NotesDatabase
Dim vRequest As NotesView
Dim vMatchVacancy As NotesView
Dim veRequest As NotesViewEntry
Dim veMatchVacancy As NotesViewEntry
Dim rowIds As String
View open-webinspector.applescript
#!/usr/bin/osascript
# Name of the device as visible in Safari->Develop menu
set deviceName to "iPhone Simulator"
# Number of seconds to wait for the simulator window to show up
set maxWait to 30
# ---------------------------------------
# You shouldn't modify anything below here
View lotusScriptSlowLoop
Option Public
Option Declare
Use "helpers"
Sub Initialize
Dim s As New NotesSession
Dim db As NotesDatabase
Dim vRequest As NotesView
Dim vMatchVacancy As NotesView
Dim vcRequest As NotesViewEntryCollection
Dim vcMatchVacancy As NotesViewEntryCollection
View dabblet.css
/**
* Problems with table borders in IE7
*/
td{
padding: 3%;
border: 2px solid red;
}
View twt-enc.js
twtTranslate.enc({"you are":"U're","it is":"its","you":"U", "todo":"2Do"," - ":"-","see":"c", "zero":"0", "one":"1", "two":"2", "three":"3", "four":"4", "five":"5", "six":"6", "seven":"7", "eight":"8", "nine":"9", "ten":"10", "for":"4", " and ":" & ", "at":"@", "great":"gr8", " how to ":" HowTo ", "JavaScript":"JS", "message":"msg", "into":"in2", "before":"b4", "star":"","!shrug":"¯\_(ツ)_/¯"})
View gist:1090202
/*
The idea is to just use 2 views that can hold whatever (in my case images).
Swipe:ing left/right will move the views that is currently hidden accordingly, making it seem like it's an infinite number of views at any direction.
This should be a very memory efficient approach.
The code below requires Appcelerator Titanium: http://appcelerator.com
*/
Something went wrong with that request. Please try again.