I hereby claim:
- I am mirzap on github.
- I am mirzap (https://keybase.io/mirzap) on keybase.
- I have a public key ASBGXSoih3f05B2Qy3aKWGYnA2A1-jQSkOQ7x7wDkICIqAo
To claim this, I am signing this object:
import "owned"; | |
contract DepositTracker is owned | |
{ | |
event Deposit(address indexed from, uint value); | |
event Transfer(address indexed to, uint value); | |
function () { | |
Deposit(msg.sender, msg.value); | |
} |
0x2373012E0add11D2AeBaB8DA2E84342e0F9215F0 |
I hereby claim:
To claim this, I am signing this object:
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
/* | |
* derivative work of Matheus de Oliveira's json_manipulator.sql | |
* https://gist.github.com/matheusoliveira/9488951 | |
* | |
* adapted to support postgresql 9.4 jsonb type | |
* no warranties or guarantees of any kind are implied or offered | |
* | |
* license is as Matheus conferred it on 4/9/2015: | |
* matheusoliveira commented on Apr 9 | |
* @hannes-landeholm, I'd like to take credit if you share them |
<?php namespace App\Http\Controllers\Api\V1; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests; | |
use Illuminate\Http\Request; | |
use Tymon\JWTAuth\Facades\JWTAuth; | |
use Tymon\JWTAuth\Exceptions\JWTException; | |
class AuthenticateController extends Controller | |
{ |
<?php | |
class ArraySplitter | |
{ | |
public $x; //the X | |
public $a; //array | |
public $n; //count of all elements | |
public $k; //index of searching | |
public $left; //count of $x in left part | |
public $right; //count of !$x in right part |
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |