These are the Kickstarter Engineering and Data role definitions for both teams.
This file contains 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
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void blink(int delay_before_on, int delay_before_off) { | |
delay(delay_before_on); | |
digitalWrite(LED_BUILTIN, HIGH); | |
delay(delay_before_off); | |
digitalWrite(LED_BUILTIN, LOW); | |
} |
I hereby claim:
- I am shurph on github.
- I am shurph (https://keybase.io/shurph) on keybase.
- I have a public key ASACLTTAwwbblOrboARoHv2tcLR1AAcAq7Jm6zSIOZmFDQo
To claim this, I am signing this object:
This file contains 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/env sh | |
ROOT_DIR=`pwd`; | |
COLOR_BLUE="\e[34m" | |
COLOR_YELLOW="\e[33m" | |
COLOR_DEFAULT="\e[0m" | |
if [ 'pull' = "$1" ]; then | |
GIT_COMMAND='pull' | |
else |
This file contains 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/env python | |
from operator import itemgetter | |
# v1 | |
def filter_dict_1(dict_obj, allowed_fields): | |
getter = itemgetter(*allowed_fields) | |
return dict(zip(allowed_fields, getter(dict_obj))) | |
# v2 |
This file contains 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
#!/bin/bash | |
# | |
# Bash completion for Convox CLI | |
# This snippet is based on @soulshake's code from https://github.com/convox/rack/issues/1405 | |
# It also includes @wav's improvements from https://github.com/urfave/cli/issues/272#issuecomment-245862282 | |
# | |
# INSTALLATION: | |
# (or see install.sh for copy&paste solution) | |
# ` | |
# export BCC_SNIPPET=https://gist.github.com/sir-shurph/8b7b7c8cd6823627669ad623543a8306 |
This file contains 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/env python3 | |
""" | |
Convert csv data (with a header line) to json | |
rough draft | |
""" | |
h = csv[0] | |
d = csv[1:] | |
hh = dict(zip(range(len(h)), h)) | |
json = [{hh[j]: k for j, k in zip(range(len(i)), i)} for i in d] |
This file contains 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/env bash | |
STAMP=`date +%s` | |
URL_FKP="http://www.bsuir.by/online/showpage.jsp?PageID=93390&resID=100229&lang=ru&menuItemID=102722" | |
URL_FZO="http://www.bsuir.by/online/showpage.jsp?PageID=83907&resID=100229&lang=ru&menuItemID=113354" | |
MAIN_CONTENT_SELECTOR=".content_body .con > table > tr:nth-child(1) > td:nth-child(1)" | |
# todo: делать конвертацию HTML сущностей в юникод | |
# perl -MHTML::Entities -pe 'decode_entities($_);' |
NewerOlder