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
View OnfidoOpenDayRuby.md

Ruby Example

Read csv

require 'csv'
 
data = CSV.read('suspects.csv')
 
data.each { |r|
View OnfidoOpenDayPython.md

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
joninvski / OpenDay.md
Last active Jun 26, 2019
Onfido OpenDay
View OpenDay.md

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 patricia@onfido.com PT Barreiro 08/08/1957
Professor Tom Plum tom@onfido.com GB Liverpool 09/11/1948
Mrs Mafalda Peacock mafalda@onfido.com PT Lisboa 28/07/1966
View Gitworkshop.md

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
View keybase.md

Keybase proof

I hereby claim:

  • I am joninvski on github.
  • I am joaotrindade (https://keybase.io/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'
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new 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"
end
private
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
View boto_aws_vpc_example.py
import boto.ec2
import boto.vpc
import boto.rds2
###### Configurations ######
PROJECT = "Testing" # This is the tag name for all resources
ACCESS_KEY = "SECRET"
SECRET_KEY = "SECRET"
REGION_NAME = 'us-west-2'
@joninvski
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__)
clicked_push=False
You can’t perform that action at this time.