I hereby claim:
- I am rub3nc on github.
- I am rub3nc (https://keybase.io/rub3nc) on keybase.
- I have a public key ASArj5oGC_1CJgetkwXbXxD82echTzCjsPT19ayKL7TryQo
To claim this, I am signing this object:
| pragma solidity >=0.5.0 <0.7.0; | |
| contract Coin { | |
| // The keyword "public" makes those variables | |
| // easily readable from outside. | |
| address public minter; | |
| mapping (address => uint) public balances; | |
| // Events allow light clients to react to | |
| // changes efficiently. |
| pragma solidity >=0.4.0 <0.7.0; | |
| contract SimpleStorage { | |
| uint storedData; | |
| uint myNumber; | |
| function setNumber(uint x) public { | |
| myNumber = x; | |
| } | |
I hereby claim:
To claim this, I am signing this object:
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
| const crypto = require('crypto') | |
| const os = require('os') | |
| const path = require('path') | |
| const cp = require('child_process') | |
| const fs = require('fs') | |
| const _ = require('lodash/fp') | |
| const logger = require('console-log-level')({level: 'info'}) |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| # settings.py | |
| TEMPLATE_CONTEXT_PROCESSORS = ( | |
| 'django.core.context_processors.i18n', | |
| ) | |
| # urls.py (outside i18n_patterns) | |
| (r'^i18n/', include('django.conf.urls.i18n')), |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script> |
| 1) Instalar PostgreSQL | |
| sudo apt-get install postgresql postgresql-contrib | |
| 2) Probar la instalación | |
| sudo -i -u postgres | |
| psql | |
| \q | |
| 3) Editamos el archivo de configuracion de postgres: | |
| sudo vim /etc/postgresql/9.3/main/pg_hba.conf |