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 | |
_yarn(){ | |
if [ "$2" = "" ]; then SEARCH_PATTERN="."; else SEARCH_PATTERN=$2 | |
fi | |
if [ "$3" == "run" ]; then | |
COMPREPLY=( $(cat package.json | jq '.scripts | keys[]' | tr -d \" | grep -E ^$SEARCH_PATTERN | tr \\n ' ') ) | |
else | |
COMPREPLY=( $(yarn --help | grep -e "-\s" | tr -d '\- ' | grep -E ^$SEARCH_PATTERN | tr -d ' ' | tr \\n ' ') ) | |
fi |
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 | |
import math | |
import numpy as np | |
import pandas as pd | |
import requests | |
from fake_useragent import UserAgent | |
from requests.adapters import HTTPAdapter, Retry | |
from municipalities import municipalities |
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
RUN apk add --no-cache \ | |
gcc \ | |
g++ \ | |
make \ | |
php7-dev \ | |
zlib-dev \ | |
libcouchbase-dev \ | |
; | |
RUN pecl channel-update pecl.php.net \ |
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
/** | |
* | |
* Added spanish language by Daniel Hernández. | |
* | |
* Continents and Countries MySQL Tables compiled from Wikipedia, Braintree Payments documentation | |
* and a couple other places I don't recall at the moment. This data is compatible with the Braintree | |
* Payment API as of Dec 2011 | |
* | |
* Compiled by Steve Kamerman, 2011 | |
*/ |
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
<? | |
$from = new DateTime('2018-01-01'); | |
$to = new DateTime('2018-12-31'); | |
$interval = DateInterval::createFromDateString('1 day'); | |
$period = new DatePeriod($from, $interval, $to); | |
foreach ($period as $day) { | |
echo $day->format('Y-m-d'); |