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 | |
import sys, os | |
print(sys.version_info[:]) | |
if sys.version_info[0] != 2: | |
sys.argv.insert(0, "python2") | |
os.execl("/usr/bin/env", "/usr/bin/env", *sys.argv) |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); |
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
# -*- coding: utf-8 -*- | |
# https://github.com/ryanmcgrath/twython | |
from twython import Twython | |
# get your keys: https://dev.twitter.com/apps/new | |
t = Twython(app_key='jwh(...)PnQ', | |
app_secret='G2H(...)kSs', | |
oauth_token='284(...)Ytv', | |
oauth_token_secret='n8w(...)3Kk') |
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
założenia: | |
mój czas jest wart tyle samo co czas osób, które go używają | |
dane: | |
delta_t - różnica czasu jednorazowego użycia kodu przed i po optymalizacji | |
x - prognozowana liczba użyć kodu | |
y - czas poświęcony na zoptymalizowanie kodu | |
z - prognozowana strata czasu podczas przyszłego rozwoju aplikacji | |
opłacalność = x * delta_t / (y + z) |
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 | |
counter=1 | |
while true; do | |
espeak -p10 -s160 "question ${counter}" | |
counter=`expr 1 + $counter` | |
sleep 600 | |
done |
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 | |
# This script protects the computer from being turned off | |
# after the temperature is too high. It sends warnings to | |
# the user and kills the most CPU intensive process. | |
# | |
# dependencies: awk, espeak, sensors | |
# author: Maciej Ciemborowicz | |
PERIOD=10 |
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
var namespaces = [ | |
"jQuery", | |
"_", | |
"Backbone", | |
"Raphael", | |
"requirejs", | |
"ace", | |
"angular", | |
"Benchmark", |
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 | |
# -*- coding: utf-8 -*- | |
import os | |
import operator | |
try: | |
from collections import defaultdict | |
except Exception: | |
print("Failed to import defaultdict") |
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
[ciembor@peace tmKeywordStats]$ ./tmks.py | |
54: comment | |
53: keyword | |
51: string | |
46: entity.other.inherited-class | |
45: support.function | |
44: storage | |
42: entity.other.attribute-name | |
39: constant | |
39: entity.name.tag |
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
Maciej, | |
We've heard back from a few other users in Poland having the same issue. They said today they went to the site and it worked perfectly for them. Would you mind testing it out and letting us know if you continue to have any trouble? | |
Best, | |
Jessica - Community Developer | |
APR 06, 2012 | 07:30PM UTC | |
Maciej, | |
Thanks for getting back to us with this information. Our systems team is currently looking into this issue. As soon as they let me know what they've found I will get back to you. |