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 | |
# | |
# A simple bash script for starting/stopping/restarting an application or service. | |
# | |
start() | |
{ | |
# Your start application code goes here. | |
} |
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 | |
# Place this file in the Electrum scripts directory. Then run from command line, like this: `~/.electrum/scripts/watch.py`. | |
import sys, time | |
from electrum import Network, print_json, SimpleConfig, Wallet, WalletStorage | |
def initialize(): | |
config = SimpleConfig() |
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 | |
# Place this file in the Electrum scripts directory. Then run from command line, like this: `~/.electrum/scripts/get_address_by_index.py <index>`. | |
import sys | |
from electrum import SimpleConfig, Wallet, WalletStorage | |
try: | |
index = int(sys.argv[1]) | |
except Exception: | |
print 'Usage: ' + sys.argv[0] + ' <index>' |
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 | |
# Place this file in the Electrum scripts directory. Then run from command line, like this: `~/.electrum/scripts/adjust_gap_limit_to_find_address.py`. | |
import sys | |
from electrum import bitcoin, Network, print_json, SimpleConfig, Wallet, WalletStorage | |
try: | |
addr = sys.argv[1] | |
except Exception: | |
print 'Usage: ' + sys.argv[0] + ' <bitcoin_address>' |
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
/* | |
|---------------------------------------------------------------- | |
| Description | |
|---------------------------------------------------------------- | |
Extend jQuery with the .center() method. Allows you to easily | |
center element(s) within a container (or the viewport). | |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|---------------------------------------------------------------- | |
| Description | |
|---------------------------------------------------------------- | |
Force client browser to download fresh CSS/JS file whenever | |
the file is modified on the server. |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|---------------------------------------------------------------- | |
| Description | |
|---------------------------------------------------------------- | |
Provides the command_exists() method, which will test to see if | |
the given shell command exists. |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|---------------------------------------------------------------- | |
| Description | |
|---------------------------------------------------------------- | |
Quick, handy time format functions. Useful for GUIs or whenever | |
a human-friendly time format is preferred over a timestamp or |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|---------------------------------------------------------------- | |
| Description | |
|---------------------------------------------------------------- | |
Converts an Arabic Numeral to Roman Numeral. |
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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
Description: | |
Adds support for PUT verb in CodeIgniter; populates PHP's $_POST data | |
super global with data for PUT requests. | |
OlderNewer