Skip to content

Instantly share code, notes, and snippets.

Joao Trindade joninvski

Block or report user

Report or block joninvski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Ruby Example

Read csv

require 'csv'
data ='suspects.csv')
data.each { |r|

Python Example

Read csv

import csv
with open('suspects.txt') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter=',')
    for row in csv_reader:
joninvski /
Last active Jun 26, 2019
Onfido OpenDay

Convict the scammer 👮

Let's try the Onfido API. We have captured four criminals that we know have spoofed their IDs. Please use onfido to run checks on their ids.

Title First Name Last Name Email Country Address town Date of Birth
Miss Patricia Scarlett PT Barreiro 08/08/1957
Professor Tom Plum GB Liverpool 09/11/1948
Mrs Mafalda Peacock PT Lisboa 28/07/1966

How git works

Word of warning: you don't need to use the command line, but you need to know the basics. Please first know how to do things in their simplest form and only then move to magic GUIs.

Starting (or my very first two commits)

  1. It all starts with a git init

Keybase proof

I hereby claim:

  • I am joninvski on github.
  • I am joaotrindade ( on keybase.
  • I have a public key ASD9UyzVe2ZdTlhoUYbavD8GYubD-rwai-7N99rjSU87Xwo

To claim this, I am signing this object:

View Suspend Twilio account ruby
require 'twilio-ruby'
auth_token = 'your_auth_token'
@client = account_sid, auth_token
# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@account = @client.accounts.get("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
@account.update(:status => "suspended")
View test.rb
module Central
module Interactors
module ListWaitingQueue
extend self
def call()
puts "Hello"
View gist:7ccf6694a34c6107a7d5

Interview planning

Time schedule:

  1. 10m - candidate CV
  2. 5m - Organization technologies and dev workflow
  3. 20m - overall computer OS/network questions
  4. 5m - linux/git
  5. 10m - scalability
import boto.ec2
import boto.vpc
import boto.rds2
###### Configurations ######
PROJECT = "Testing" # This is the tag name for all resources
REGION_NAME = 'us-west-2'
joninvski / gist:c2c1a9bdad351c8b2caf
Created Mar 9, 2015
Store variable server flask
View gist:c2c1a9bdad351c8b2caf
import json
import sys
from flask import Flask
from flask import request
from flask import Response
app = Flask(__name__)
You can’t perform that action at this time.