Skip to content

Instantly share code, notes, and snippets.

{
"fwupdate": "noneed",
"title": "",
"body": "",
"bigpicture": "",
"channel": "kanal12"
}
{
"url": "https://ldasdas",
import wd from 'wd';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
const PORT = 4723;
const config = {
platformName: 'Android',
deviceName: 'Pixel_2_API_24Pixel_2_API_24(AVD) - 7.0',
app: 'C:/Users/berkin1/Desktop/vgo/android/app/build/outputs/apk/app-debug.apk' // relative to root of project
};
const driver = wd.promiseChainRemote('localhost', PORT);
@barron9
barron9 / iller.json
Last active July 5, 2019 22:49 — forked from serong/iller.json
JSON formatında Türkiye'nin illeri.
{"01":"ADANA","02":"ADIYAMAN","03":"AFYONKARAHİSAR","04":"AĞRI","05":"AMASYA","06":"ANKARA","07":"ANTALYA","08":"ARTVİN","09":"AYDIN","10":"BALIKESİR","11":"BİLECİKK","12":"BİNGÖL","13":"BİTLİS","14":"BOLU","15":"BURDUR","16":"BURSA","17":"ÇANAKKALE","18":"ÇANKIRI","19":"ÇORUM","20":"DENİZLİ","21":"DİYARBAKIR","22":"EDİRNE","23":"ELAZIĞ","24":"ERZİNCAN","25":"ERZURUM","26":"ESKİŞEHİR","27":"GAZİANTEP","28":"GİRESUN","29":"GÜMÜŞHANE","30":"HAKKARİ","31":"HATAY","32":"ISPARTA","33":"MERSİN","34":"İSTANBUL","35":"İZMİR","36":"KARS","37":"KASTAMONU","38":"KAYSERİ","39":"KIRKLARELİ","40":"KIRŞEHİR","41":"KOCAELİ","42":"KONYA","43":"KÜTAHYA","44":"MALATYA","45":"MANİSA","46":"KAHRAMANMARAŞ","47":"MARDİN","48":"MUĞLA","49":"MUŞ","50":"NEVŞEHİR","51":"NİĞDE","52":"ORDU","53":"RİZE","54":"SAKARYA","55":"SAMSUN","56":"SİİRT","57":"SİNOP","58":"SİVAS","59":"TEKİRDAĞ","60":"TOKAT","61":"TRABZON","62":"TUNCELİ","63":"ŞANLIURFA","64":"UŞAK","65":"VAN","66":"YOZGAT","67":"ZONGULDAK","68":"AKSARAY","69":"BAYBURT","70":"KARAM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class screenwheel : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragHandler
{
public Transform onsol;
from gevent import monkey
monkey.patch_all()
from requests import Session
from signalr import Connection
import pprint
def handle_received(*args, **kwargs):
if 'R' in kwargs and type(kwargs['R']) is not bool:
# kwargs['R'] contains your snapshot
#print(kwargs['R'] )
using System;
using wclCommon;
using wclBluetooth;
namespace GattServer
{
class GattServer : wclThread
{
private wclBluetoothManager FManager;
upstream firstbackend {
server 172.17.0.3 max_fails=3 fail_timeout=30s;
server 172.17.0.5 max_fails=3 fail_timeout=30s;
}
server {
listen 80 default_server;
location / {
proxy_pass http://firstbackend;
}
<svg class="uch-psvg" viewBox="0 0 643.0 164.0" preserveAspectRatio="none" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="fill-id-tsuidT0kzXuupB8PEkwWyj5v4Aw1" x1="0%" x2="0%" y1="0%" y2="100%"><stop offset="0%" stop-color="#0f9d58" stop-opacity="0.38"></stop><stop offset="13%" stop-color="#dbf0e5" stop-opacity="0"></stop></linearGradient><clipPath id="range-id-tsuidT0kzXuupB8PEkwWyj5v4Aw1"><rect height="100%" width="0" x="0" y="0"></rect></clipPath><defs><linearGradient id="chart-grad-_T0kzXuupB8PEkwWyj5v4Aw3" x1="0%" x2="0%" y1="0%" y2="100%"><stop offset="0%" stop-color="#0f9d58" stop-opacity="0.38"></stop><stop offset="13%" stop-color="#dbf0e5" stop-opacity="0"></stop></linearGradient></defs><clipPath id="mask-_T0kzXuupB8PEkwWyj5v4Aw2"><rect height="174" width="643" x="0" y="-5"></rect></clipPath></defs><path d="M 0 114.8 L 7.56 114.8 L 15.13 114.8 L 22.69 131.2 L 30.26 114.8 L 37.82 114.8 L 45.39 131.2 L 52.95 131.2 L 60.52 147.6 L 68.08 147.6 L 75.65 131.2 L 83.21 131.2 L 90.78 13
#generate model
from random import randint
TRAIN_SET_LIMIT = 1000
TRAIN_SET_COUNT = 100
import sys
TRAIN_INPUT = list()
TRAIN_OUTPUT = list()
# for i in range(TRAIN_SET_COUNT):
# a = randint(0, TRAIN_SET_LIMIT)
# b = randint(0, TRAIN_SET_LIMIT)
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
candidates = {'gmat': [780,750,690,710,680,730,690,720,740,690,610,690,710,680,770,610,580,650,540,590,620,600,550,550,570,670,660,580,650,660,640,620,660,660,680,650,670,580,590,690],
'gpa': [4,3.9,3.3,3.7,3.9,3.7,2.3,3.3,3.3,1.7,2.7,3.7,3.7,3.3,3.3,3,2.7,3.7,2.7,2.3,3.3,2,2.3,2.7,3,3.3,3.7,2.3,3.7,3.3,3,2.7,4,3.3,3.3,2.3,2.7,3.3,1.7,3.7],
'work_experience': [3,4,3,5,4,6,1,4,5,1,3,5,6,4,3,1,4,6,2,3,2,1,4,1,2,6,4,2,6,5,1,2,4,6,5,1,2,1,4,5],
'admitted': [1,1,1,1,1,1,0,1,1,0,0,1,1,1,1,0,0,1,0,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,1,0,0,0,0,1]
}