Skip to content

Instantly share code, notes, and snippets.

View bertolo1988's full-sized avatar
🎯
Focusing

Tiago Bértolo bertolo1988

🎯
Focusing
View GitHub Profile
@bertolo1988
bertolo1988 / stackoverflow_question_scrapper.js
Last active June 2, 2016 18:43
Grab top questions from stackoverflow.com fidElements example javascript webdriverjs
var timeout = 80000;
var webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until;
var driver = new webdriver.Builder()
.forBrowser('chrome')
.build();
driver.get('http://stackoverflow.com/');
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class ImageManipulationExample {
static String PATH = "C:/Users/tiago/Pictures/";
static String SOURCE1 = "image1";
static String SOURCE2 = "image2";
/**
* @author bertolo1988
* http://codeforces.com/problemset/problem/115/A
* 115A-Party
*/
import java.util.*;
public class Party {
public static void main(String[] args) {
var n = parseInt(readline());
var s, skillsInput = readline().split(' ');
var skills = [];
var programmers = [];
var mathematicians = [];
var athletes = [];
var groups = [];
for (var i = 0; i < skillsInput.length; i++) {
var skillCursor = parseInt(skillsInput[i]);
private static int MAX_DRAWS = 150;
private static int STARTING_MONEY = 25;
private static int OBJECTIVE_MONEY = 50;
private static int STARTING_BET = 1;
private static int ROULETTES = 10;
private static int ANALYZED_DRAWS = 4;
Draw 1
RouletteId 0 - 24 36 24 19 5 22 9 36 35 31
RouletteId 1 - 10 22 0 12 31 3 30 5 32 13
MAX_DRAWS = 100
STARTING_MONEY = 25
OBJECTIVE_MONEY = 50
STARTING_BET = 1
ROULETTES = 10
ANALYZED_DRAWS = 4
SESSIONS = 100000
BlindMartingale
private static int MAX_DRAWS = 150;
private static int STARTING_MONEY = 25;
private static int OBJECTIVE_MONEY = 50;
private static int STARTING_BET = 1;
private static int ROULETTES = 10;
private static int ANALYZED_DRAWS = 7;
Draw 1
RouletteId 0 - 16 6 31 13 2 9 13 26 6 35
RouletteId 1 - 27 10 24 9 8 18 25 10 31 29
app.get('/voice', function(req, res) {
var resp = new twilio.TwimlResponse();
res.writeHead(200, {
'Content-Type': 'text/xml'
});
var phone = req.query.phone;
var userName = req.query.user;
import React from 'react';
import ReactDOM from 'react-dom';
import './TodoApp.css';
import classNames from 'classnames';
const TODOS = [
{ priority: 1, completed: false, text: 'Buy socks' },
{ priority: 2, completed: false, text: 'Fix 1€ bug on flight-scrappper' },
{ priority: 1, completed: false, text: 'Buy Jeans' },
tiagowtvision@tiagowtvision-ubu-N55SL:~/Code/Github/sticky-notes$ npm run lint
> sticky-notes@0.0.1 lint /home/tiagowtvision/Code/Github/sticky-notes
> tslint --project '.'
app/app.component.ts[1, 27]: ' should be "
app/app.component.ts[4, 15]: ' should be "
app/app.component.ts[5, 15]: ' should be "
/home/tiagowtvision/Code/Github/sticky-notes/app/notes.service.ts[1, 28]: ' should be "
/home/tiagowtvision/Code/Github/sticky-notes/app/notes.service.ts[2, 22]: ' should be "