I hereby claim:
- I am kalagan on github.
- I am juliensansot (https://keybase.io/juliensansot) on keybase.
- I have a public key ASCmcLwirMrKxlfHxSygRA4QMbvfEnj6_qf0e4L4Dhm62Ao
To claim this, I am signing this object:
#!/bin/sh | |
# Detects which OS and if it is Linux then it will detect which Linux Distribution. | |
OS=`uname -s` | |
REV=`uname -r` | |
MACH=`uname -m` | |
GetVersionFromFile() | |
{ | |
VERSION=`cat $1 | tr "\n" ' ' | sed s/.*VERSION.*=\ // ` |
//a,b,c are the sides of the triangle | |
function get_third_point_coordinates(a, b, c){ | |
var result = {x:0,y:0}; | |
if(a > 0){ | |
result.x = (c*c - b*b + a*a) / (2*a); | |
} | |
result.y = Math.sqrt(c*c - result.x*result.x); |
#with docker | |
docker run -it -v "$PWD"/mongo_dump:/data/dump --rm mongo:3.0.5 sh -c 'exec mongodump --out /data/dump --host=1.2.3.4 --db the_database' | |
docker run -it -v "$PWD"/mongo_dump:/data/dump --rm mongo:3.0.5 sh -c 'exec mongorestore --host=1.2.3.4 --db the_database /data/dump/the_database --drop' | |
#dump | |
sudo mongodump | |
#restore (droping previous data) | |
sudo mongorestore |
# You need a .env file in the same folder: | |
# PUBLIC_KEY=.... | |
# SECRET_KEY=.... | |
# | |
# And then run with ruby test_checkout.rb | |
# | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' |
I hereby claim:
To claim this, I am signing this object:
{ | |
"auto_match_enabled": false, | |
"detect_indentation": false, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"show_full_path": true, | |
"tab_size": 2, | |
"trim_trailing_white_space_on_save": true, |
A | |
A'asia | |
A's | |
AA | |
AA's | |
AAA | |
AAM | |
AB | |
AB's | |
ABA |
{ | |
"scripts": { | |
"postdeploy": "pg_dump -Fc $DATABASE_URL_TO_COPY | pg_restore --clean --no-owner -n public -d $DATABASE_URL && bundle exec rails db:migrate" | |
} | |
} |
- 1 | |
the image uses the full width or full height of the div | |
we always see all the image, nothing is cropped | |
<div class="container"></div> | |
.container { | |
width: 500px; | |
height: 300px; | |
border: 1px solid black; | |
background-image: url("http://placehold.it/200x400"); | |
background-repeat: no-repeat; |
/Users/{user}/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_22 -http-proxy 192.168.60.1:8888 |