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
if ($.browser.msie && $.browser.version <= 7) { | |
(function () { | |
$.fn.originalRemove = $.fn.remove; | |
$.fn.remove = function (selector) { | |
this.originalRemove(selector); | |
for (var k in this) { | |
delete this[k]; | |
} | |
}; | |
})(jQuery); |
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 http = require('http'); | |
var select = require('soupselect').select; | |
var htmlparser = require('htmlparser'); | |
var ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.83 Safari/535.2'; | |
var updateFromTheSite = function (callback) { | |
var cookies = 'uid=0000; pass=0000000000000000'; | |
var siteName = 'The Site name'; |
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 isIEStatic = null; | |
var isIE = function () { | |
if (isIEStatic === null) { | |
var div = document.createElement('div'); | |
div.style.display = 'none'; | |
div.innerHTML = '<!--[if IE]><div id="ie-find"><[endif]-->'; | |
document.body.appendChild(div); | |
if (document.getElementById('ie-find')) { | |
isIEStatic = true; |
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
server { | |
server_name php.sutralib.com; | |
access_log /var/log/nginx/php.sutralib.com.access_log main; | |
error_log /var/log/nginx/php.sutralib.com.error_log info; | |
root /home/tatsh/dev/php-doc; | |
index index.php; | |
error_page 401 /error.php; | |
error_page 403 /error.php; |
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
/* | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 3 | |
of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
/* | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 3 | |
of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
#include <windows.h> | |
#include <stdio.h> | |
void errhandler(char *msg) { | |
printf("%s\n", msg); | |
} | |
PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp) | |
{ | |
BITMAP bmp; |
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 addLabels = function (form) { | |
// Thanks to yorick | |
var collections = ['input', 'textarea', 'select'].map(form.getElementsByTagName.bind(form)); | |
var labelText, labelEl; | |
var d = document, i, j, ilen; | |
var dir = (!form.dir ? (!d.dir ? 'ltr' : d.dir) : form.dir).toLowerCase(); | |
var insertLabel = function (labelEl, inputEl) { | |
var ref = dir === 'ltr' ? inputEl : inputEl.nextSibling; | |
ref.insertBefore(labelEl, ref); |
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 python | |
import sqlite3 | |
import os | |
import subprocess as sp | |
import signal | |
from time import sleep | |
home = os.environ['HOME'] |
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/sh | |
# Get the debs for everything installed | |
test $UID -ne 0 && echo "Must be run as root" && exit 1 | |
AUTO_INSTALL_DIR="/var/root/Media/Cydia/AutoInstall" | |
cd | |
dpkg --get-selections | grep -v -E 'gsc|cy\+|base|bash|dpkg|cydia|firmware|evasi0n|corona|racoon' | awk '{ print $1 }' > packages |
OlderNewer