Skip to content

Instantly share code, notes, and snippets.

View ssbb's full-sized avatar
🏠
Working from home

Sviatoslav Bulbakha ssbb

🏠
Working from home
View GitHub Profile
@ssbb
ssbb / test.py
Created December 19, 2015 20:39
urls = [1, 2, 3]
def process(url):
print(url)
def main():
while urls:
item = urls.pop(0)
@ssbb
ssbb / test.py
Created December 19, 2015 20:24
urls = [1, 2, 3]
def main():
while urls:
item = urls.pop(0)
print('Processing item: {}'.format(item))
tries = 0
while tries < 4:
@ssbb
ssbb / test.py
Created December 19, 2015 20:14
items = [1, 2, 3]
while items:
item = items.pop(0)
print('Processing item: {}'.format(item))
tries = 0
while tries < 4:
try:
raise Exception('My Exception')
@ssbb
ssbb / null.go
Created November 24, 2015 05:05
package main
import (
"fmt"
"log"
"os/exec"
)
func main() {
data := make([]byte, 1024*512)
@ssbb
ssbb / null.go
Created November 24, 2015 05:04
package main
import (
"fmt"
"log"
"os/exec"
)
func main() {
data := make([]byte, 1024*512)
cmd := exec.Command("ffprobe", "-i", "pipe:0", "-show_format",
"-print_format", "json", "-show_streams", "-probesize", "32")
stdin, err := cmd.StdinPipe()
if err != nil {
log.Fatal(stdin)
}
stdin.Write(data)
stdin.Close()
@ssbb
ssbb / test.py
Created November 17, 2015 23:49
from .production import * # noqa
ALLOWED_HOSTS = ['example.com']
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
AWS_STORAGE_BUCKET_NAME = ''
DATABASES = {
'default': {
@ssbb
ssbb / local.py
Created September 23, 2015 23:35
from .development import * # noqa
my $thisName = "myname";
my $thisPass = "mypassword";
my @series = ();
my %thisData = (login => $thisName, pass => $thisPass);
push(@series, \%thisData);
foreach my $index (0 .. $#series) {
print $series[$index]{'pass'};
}
* Extra charges
| Task | Price |
|----------------------------------------------+-------|
| Photo cropping like facebook | 70$ |
| Backup setup | 35$ |
| Wishbook view | 35$ |
| All other non-bug fixes[fn:1] | 20$ |
| Make the grid view by default | 4$ |
| mobile version problem (so much space) | 3$ |
| Change notification email for user following | 5$ |