Skip to content

Instantly share code, notes, and snippets.

ruprict / ballot.sol
Created Aug 3, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View ballot.sol
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;
View Dockerfile
FROM ruby:2.5-alpine
RUN apk add --update --no-cache \
# build-base \
nodejs \
sqlite-libs \
sqlite-dev \
RUN mkdir /blog
ruprict / docker-compose.yml
Created Apr 5, 2017
Changed the port and added a `secrets` to the github_responder service.
View docker-compose.yml
version: "3.1"
- 8080:4567
image: alexellis2/github-secret-integration
- github_webhook

Keybase proof

I hereby claim:

  • I am ruprict on github.
  • I am ruprict ( on keybase.
  • I have a public key ASCbsaya2xwpiiBByEaQFJZIKcMpQMi7yy6-GYpDm6yCdQo

To claim this, I am signing this object:

View Gemfile
source ''
# Specify your gem's dependencies in gist-gem.gemspec
View conn.js
var Sequelize =require('sequelize');
const Conn = new Sequelize(process.env.DATABASE_URL);
// const Conn = new Sequelize(
// 'test',
// 'postgres',
// 'postgres',
// { dialect: 'postgres', host: 'localhost' }
// )
View conn.js
var Sequelize =require('sequelize');
const Conn = new Sequelize(process.env.DATABASE_URL);
// const Conn = new Sequelize(
// 'test',
// 'postgres',
// 'postgres',
// { dialect: 'postgres', host: 'localhost' }
// )
View gist:dd086ad2dd4cfcb8263f
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_X_FORWARDED_FOR"=>"", "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"=>"", "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

View index.js
function deserializeError(res) {
// new rejected Promise to go down failure chain
return deserialize(res).then(function(body){
throw body;
You can’t perform that action at this time.