Skip to content

Instantly share code, notes, and snippets.

@ruprict
ruprict / ballot.sol
Created August 3, 2018 15:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity 0.4.24;
contract Casino {
address public owner;
uint256 public minimumBet;
uint256 public totalBet;
uint256 public numberOfBets;
uint256 public maxAmountOfBets = 100;
address[] public players;
FROM ruby:2.5-alpine
RUN apk add --update --no-cache \
# build-base \
nodejs \
sqlite-libs \
sqlite-dev \
tzdata
RUN mkdir /blog
@ruprict
ruprict / docker-compose.yml
Created April 5, 2017 21:07
Changed the port and added a `secrets` to the github_responder service.
version: "3.1"
services:
github_responder:
ports:
- 8080:4567
image: alexellis2/github-secret-integration
secrets:
- github_webhook
secrets:
github_webhook:

Keybase proof

I hereby claim:

  • I am ruprict on github.
  • I am ruprict (https://keybase.io/ruprict) on keybase.
  • I have a public key ASCbsaya2xwpiiBByEaQFJZIKcMpQMi7yy6-GYpDm6yCdQo

To claim this, I am signing this object:

source 'https://rubygems.org'
# Specify your gem's dependencies in gist-gem.gemspec
gemspec
var Sequelize =require('sequelize');
const Conn = new Sequelize(process.env.DATABASE_URL);
// const Conn = new Sequelize(
// 'test',
// 'postgres',
// 'postgres',
// { dialect: 'postgres', host: 'localhost' }
// )
var Sequelize =require('sequelize');
const Conn = new Sequelize(process.env.DATABASE_URL);
// const Conn = new Sequelize(
// 'test',
// 'postgres',
// 'postgres',
// { dialect: 'postgres', host: 'localhost' }
// )
*****
product-search_1 | #<ActionDispatch::Http::Headers:0x0056147e7de5b8 @env={"rack.version"=>[1, 3], "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"2.16.0", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/rugs", "REQUEST_URI"=>"/rugs", "HTTP_VERSION"=>"HTTP/1.1", "HTTP_HOST"=>"uniqueusa_product-search_1:3000", "HTTP_USER_AGENT"=>"curl/7.43.0", "HTTP_ACCEPT"=>"*/*", "HTTP_ACCEPT_LANGUAGE"=>"en-US,en;q=0.8,el;q=0.6,es;q=0.4", "HTTP_ORIGIN"=>"http://uu.dev", "HTTP_X_FORWARDED_FOR"=>"192.168.99.1", "HTTP_X_FORWARDED_HOST"=>"uniqueusa_product-search_1:3000", "HTTP_X_FORWARDED_PROTO"=>"http", "HTTP_ACCEPT_ENCODING"=>"gzip", "SERVER_NAME"=>"uniqueusa_product-search_1", "SERVER_PORT"=>"3000", "PATH_INFO"=>"/rugs", "REMOTE_ADDR"=>"172.19.0.14", "puma.socket"=>#<TCPSocket:fd 19>, "rack.hijack?"=>true, "rack.hijack"=>#<Puma::Client:0x2b0a3f

#Our Hour of Code

I am sure you've heard of the Hour of Code. Wait, you haven't? OMG, I have to get you up to speed! Here, read this:

The Hour of Code is a global movement reaching tens of millions of students in 180+ countries. Anyone, anywhere can organize an Hour of Code event. One-hour tutorials are available in over 40 languages. No experience needed. Ages 4 to 104.

Ok, so I didn't write that, I just stole it from the Hour of Code website. Can you blame me? We just have an hour! Oh, wait, I'm being told that the Hour can be many hours, and it can even go all year long, not just this week. Sweet! fist pump high kick

Several of us at Skookum have been looking forward to the HoC (I shortened it b/c that's wot nerdz do. In fact, if I wanted to, I could reduce the rest of this article to (ɔ◔‿◔)ɔ ♥, but I don't want to lose any of you) like some kind of Super Nerd Holiday Recruiting Event (SNRE, pronounced sah-nuh-ree). We were a part of the Charlotte team of the SNRE, an

@ruprict
ruprict / index.js
Last active October 14, 2015 18:47
function deserializeError(res) {
// new rejected Promise to go down failure chain
return deserialize(res).then(function(body){
throw body;
});
}