Skip to content

Instantly share code, notes, and snippets.

View vigo's full-sized avatar
🕶️
I may be slow to respond.

Uğur Özyılmazel vigo

🕶️
I may be slow to respond.
View GitHub Profile
@vigo
vigo / json_server.py
Last active January 26, 2022 11:57
Basic JSON webserver
#!/usr/bin/env python
import sys
import time
import argparse
import os
import json
import socketserver
from http.server import BaseHTTPRequestHandler
@vigo
vigo / pubsub.py
Created March 13, 2018 19:26 — forked from mklymyshyn/pubsub.py
class PubSub(object):
"""
Very simple Pub/Sub pattern wrapper
using simplified Redis Pub/Sub functionality.
Usage (publisher)::
import redis
r = redis.Redis()
@vigo
vigo / tree.md
Created November 12, 2017 19:20 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@vigo
vigo / env.sh
Last active January 25, 2017 12:46
Dotfiles Fever - Linux setup
export PS1=$PS1_ADVANCED
@vigo
vigo / style.css
Last active February 21, 2017 08:51
GitHub - Stylish
body {
font-family: 'Helvetica';
}
.markdown-body {
font-family: 'Helvetica';
}
.octotree_views {
font-family: 'FiraCode-retina';
font-size: .75rem;
}
@vigo
vigo / show_opened_tab_count_of_safari.applescript
Last active July 19, 2016 06:30
Show opened tab count of Safari
tell application "Safari"
set total_tab_count to 0
set number_of_windows to number of windows
repeat with x from 1 to number_of_windows
try
set current_windows_tab_count to number of tabs in window x
set total_tab_count to total_tab_count + current_windows_tab_count
on error error_message
log error_message
end try
@vigo
vigo / README.md
Last active February 1, 2016 15:16
Akademik Bilişim 2016 - Rails 101 - Linkler
@vigo
vigo / resources.md
Created August 27, 2015 12:21
Resources, libs etc.
on run
tell application "Finder"
get bounds of window of desktop
set DesktopSize to bounds of window of desktop
set DesktopWidth to item 3 of DesktopSize
set DesktopHeight to item 4 of DesktopSize
end tell
tell application "App Store"
activate
set the bounds of the first window to {0, 0, DesktopWidth, DesktopHeight}
@vigo
vigo / tr-developer-podcasts.md
Last active June 9, 2017 11:11
Türkçe Developer PodCast'leri

Türkçe Developer PodCast’leri

devPod

[Web][1a] - [iTunes][1b]

webBox5

[Web][2a] - [iTunes][2b]