This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FlatMapTest { | |
public FlatMapTest() { // <init> //()V | |
<localVar:index=0 , name=this , desc=LFlatMapTest;, sig=null, start=L1, end=L2> | |
L1 { | |
aload0 // reference to self | |
invokespecial java/lang/Object <init>(()V); | |
return | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bayes_opt import BayesianOptimization | |
from sklearn.cross_validation import KFold | |
import xgboost as xgb | |
def xgbCv(train, features, numRounds, eta, gamma, maxDepth, minChildWeight, subsample, colSample): | |
# prepare xgb parameters | |
params = { | |
"objective": "reg:linear", | |
"booster" : "gbtree", | |
"eval_metric": "mae", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from time import sleep | |
import requests | |
from twilio.rest import Client | |
TWILIO_ACCOUNT_SID = "ACXXX" | |
TWILIO_AUTH_TOKEN = "XXX" | |
FROM = "+1XXXXX" | |
RECIPIENT = "+491XXXX" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import random as r | |
def random_doors(): | |
doors = [False] * 3 | |
doors[r.randint(0, 2)] = True | |
return doors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require('underscore'); | |
const { Client } = require('pg'); | |
const all_query = `SELECT id FROM "filter-test"."filter-test";`; | |
const some_query = `SELECT id, blob FROM "filter-test"."filter-test" WHERE id IN ('$(WHERE_IN_FILTER)');`; | |
async function query(q) { | |
const client = new Client({ | |
user: 'postgres', | |
database: 'postgres' |
OlderNewer