Skip to content

Instantly share code, notes, and snippets.

View ckcollab's full-sized avatar

Eric Carmichael ckcollab

View GitHub Profile
@ckcollab
ckcollab / uploader.py
Last active March 22, 2019 01:01
Dataset bulk upload script
import requests
base_url = "http://competitions" # no trailing slash!
username = "admin"
password = "admin"
file_to_upload = "uploader.py" # uploading this file itself to test things..
file_to_upload_name = "This script, a test!"
file_to_upload_type = "None" # see types below for when you use this..
@ckcollab
ckcollab / data.yaml
Last active November 20, 2018 22:23
YAML Validator for Codalab Competitions v2
title: 'Hello world!'
image: 'some_image.png'
pages:
- title: 'Welcome!'
path: 'welcome.md'
- title: 'How to compete'
path: 'how_to.md'
phases:
@ckcollab
ckcollab / scraper.py
Last active February 18, 2016 21:58
scraper example
import json
import os
import requests
import grequests
from lxml import html
class Scraper(object):
def __init__(self):
@ckcollab
ckcollab / gist:281035fd5d6bcf9a6a2d
Last active August 29, 2015 14:19
Monthly Kickback
What'd we get done this month?
What's working, what's not?
What hurts?
What are you curious about/want to try?
How are you feeling?
[GameEvents]
evtSmartCastSpell1=[q]
evtSmartCastSpell3=[e]
evtSmartCastSpell4=[r]
evtSmartCastVisionItem=[t]
evtUseVisionItem=[<Unbound>]
@ckcollab
ckcollab / shortcuts.md
Last active August 29, 2015 14:02
PyCharm 3.4 shortcuts/tips

View definition

option + space

Multi caret

control + g to mutliselect

control + shift + up/down arrows -> clone caret up or down

@ckcollab
ckcollab / gist:be863be9504507c8e008
Created June 8, 2014 22:39
PyCharm 3.4 shortcuts/tips
## Multi caret
control + g to mutliselect
control + shift + up/down arrows -> clone caret up or down
## Word selection
alt + up arrow -> expand selection