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
const CreditCardDetector = require('cleave.js/src/shortcuts/CreditCardDetector'); | |
export default { | |
data () { | |
return { | |
delimiter: ' - ', | |
prevCCNumHead: false, | |
prevMask: false | |
} | |
}, |
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
yourrewrites_csv = '{}/Desktop/yourrewrites.csv'.format(os.path.expanduser('~')) | |
csv_file = open(yourrewrites_csv, 'rU') | |
urls = csv.reader(csv_file) | |
iterurls = iter(urls) | |
# Skip the column headers | |
next(iterurls) | |
# Create additional columns to assist with sorting | |
list_to_sort = [] |
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
type: | |
nano .bashrc | |
Now type: | |
export PS1=" " | |
Between the quotation marks, you can add the following lines to customize your Terminal prompt: |
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
stage { "pre": before => Stage["main"] } | |
class python { | |
package { | |
"build-essential": ensure => latest; | |
"python": ensure => "2.6.6-2ubuntu1"; | |
"python-dev": ensure => "2.6.6-2ubuntu1"; | |
"python-setuptools": ensure => "latest"; | |
} | |
exec { "easy_install pip": | |
path => "/usr/local/bin:/usr/bin:/bin", |
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 defined('SYSPATH') OR die('No direct script access.'); | |
class Arr extends Kohana_Arr { | |
/** | |
* Maps new keys to an array | |
* | |
* Example: | |
* | |
* $customer_values = Arr::remap_keys($_POST, array( |
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 | |
$startTime = strtotime('-1 hours'); | |
$endTime = $startTime + 3600; | |
$startTime = date('c', $startTime); | |
$endTime = date('c', $endTime); | |
$result = $client->getMetricStatistics(array( | |
'MetricName' => 'Latency', |