I hereby claim:
- I am ptgamr on github.
- I am ptgamr (https://keybase.io/ptgamr) on keybase.
- I have a public key ASC4NF7gpcHQqMZm8ep9eQlRPlRXZfx8fgMSlrUAN5SwFwo
To claim this, I am signing this object:
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty it self. | |
env: | |
# TERM env customization. Default is xterm-256color | |
# Note: the default TERM value `xterm-256color` does not | |
# specify all features alacritty supports. This does pose |
body { | |
background-color: #333; | |
color: #ddd; | |
border-color: white !important; | |
} | |
body * { | |
border-color: #444 !important; | |
} |
I hereby claim:
To claim this, I am signing this object:
[https://gist.github.com/stephou0104/233b5c99884f1d8c8b8b#file-ubuntu-compass-ruby] | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc |
const isValid = (v) => { | |
return v !== null && v !== undefined; | |
} | |
const isObject = (v) => { | |
return typeof(v) === 'object'; | |
} | |
const isCallable = (v) => { | |
return typeof(v) === 'function'; |
var duplicates = []; | |
db.staff.aggregate([ | |
{ $match: { | |
id: { "$exists": true } // discard selection criteria | |
}}, | |
{ $group: { | |
_id: { id: "$id"}, // can be grouped on multiple properties | |
dups: { "$addToSet": "$_id" }, | |
count: { "$sum": 1 } |
const promisify = func => { | |
// this need to not using arrow function, otherwise the `this` context will be wrong | |
return function() { | |
const args = Array.from(arguments); | |
return new Promise((resolve, reject) => { | |
const callback = (err, data) => { | |
if (error) { | |
return reject(err); | |
} |
I have successfully applied the following coupon on the subscription: sub_B11QoX8cG4AjeW
ID: scoutingtagging-chf-month
Amount off: CHF 90.00 CHF off
Duration: once
Valid: true
Now I want to switch all the subscribed plans to yearly plan, with prorate = true
.
If you ever need a mobile application, you probably have an API endpoint to talk to. And if you're doing it right, you should have different environment for your API, usually it'll be: dev, staging, production.
We dont' want to perform test againts the production API. We need a way to teach our app to talk to different API environment. But what is the switch?
The naive way: