This file contains hidden or 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 | |
require_once('assembla.plugin'); | |
$key = '...'; //this is your assembla space id | |
$username = '...'; //this is an assembla user account name | |
$password = '...'; //this is the password for the above user | |
$A = new Assembla($key, $username, $password); | |
//$tickets = $A->listTickets(); |
This file contains hidden or 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/local/bin/perl | |
# | |
# CC-Verify script for Visa, MasterCard, Amex and Novus Cards | |
# Written 29 June 1996 by Spider ([email protected]) | |
# http://w3works.com | |
# http://www.servtech.com/public/spider | |
# | |
# Loosely based on a re-post of original by Melvyn Myers | |
# (initial author unknown) but this revision covers all 13, | |
# 15 and 16 digit cards using the Mod 10 algorithm. |
This file contains hidden or 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
/ip firewall | |
dst-nat protocol=tcp dst-port=80 Action dst-nat to-address=20.20.20.45 to-ports=80 | |
add action=dst-nat chain=dstnat comment="" disabled=no dst-port=80 protocol=tcp to-addresses=20.20.20.45 to-ports=80 | |
#Creating pppoe interface and ADSL internet connection | |
/ interface pppoe-client | |
add name="pppoe-out1" max-mtu=1480 max-mru=1480 interface=ether5 \ | |
user="USERNAMEl" password="PASSWORD" profile=default \ |
This file contains hidden or 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
import android.accounts.Account; | |
import android.accounts.AccountManager; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.content.SharedPreferences.Editor; | |
import android.os.Build; | |
import android.preference.PreferenceManager; | |
public final class AccountUtils { |
This file contains hidden or 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 | |
/** | |
* This script will allow the export of complete user time-lines from the twitter | |
* service. It joins together all pages of status updates into one large XML block | |
* that can then be reformatted/processed with other tools. | |
* | |
* @since 10/13/08 | |
* | |
* @copyright Copyright © 2008, Adam Franco | |
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) |
This file contains hidden or 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA1 | |
// Generated on: 2012-04-13 23:44:46 GMT+00:00 | |
// ************** Tweet 1 of 47455 ************** | |
{ | |
"in_reply_to_screen_name": null, |
This file contains hidden or 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
//You're trying to match a text attribute that does not exist. You cannot write: | |
$("#Select0 option[text='" + myText + "']").get(0).selected = true; | |
You can use filter() instead: | |
$("#Select0 option").filter(function() { | |
return $(this).text() == myText; | |
}).get(0).selected = true; | |
//Or, taking more advantage of the library: |
This file contains hidden or 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 ($) { | |
'use strict'; | |
$.fn.math = function (operation, a, b) { | |
return this.each(function () { | |
var result = 0; | |
switch(operation){ | |
case '+': | |
result = a + b; | |
break; |
This file contains hidden or 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 (jQuery) | |
(function(jQuery){ | |
jQuery.extend(jQuery.fn, { | |
record: function(options){ | |
jQuery(this).each(function(){ | |
var settings = jQuery.extend({ | |
}, options); | |
var _this = $(this); | |
load(_this, true); | |
_this.on('blur change', function() { |
This file contains hidden or 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 load(_this, init){ | |
var name = generateName(_this); | |
var type = _this.attr('type'); | |
if(!type) | |
type = _this.prop("tagName"); | |
if(!init && type != 'radio' && type != 'checkbox') | |
localStorage.setItem(name, _this.val()) |