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
// ==UserScript== | |
// @name Reddit Multi Column | |
// @namespace https://gist.github.com/c6p/463892bb243f611f2a3cfa4268c6435e | |
// @version 0.1.15 | |
// @description Multi column layout for reddit redesign | |
// @author Can Altıparmak | |
// @homepageURL https://gist.github.com/c6p/463892bb243f611f2a3cfa4268c6435e | |
// @match https://www.reddit.com/* | |
// @grant none | |
// ==/UserScript== |
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 | |
# See http://stackoverflow.com/questions/3581031/backup-mirror-github-repositories/13917251#13917251 | |
# Original Author: 'Marius Gedminas <marius@gedmin.as> | |
# Based on: https://gist.github.com/4319265 | |
import os | |
import sys | |
import json | |
import urllib.request | |
import subprocess |
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/sh | |
#word=`xsel -o`; | |
word='' | |
for i in "$@"; | |
do | |
word=$word" "$i; | |
done | |
html=`wget --no-cookies -q "http://www.seslisozluk.net/$word-nedir-ne-demek/" -O-`; |
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/python3 | |
from time import time | |
import sqlite3 | |
from sys import argv | |
import sys, tty, termios | |
from textwrap import fill | |
filepath = "/home/can/.flashcard.sqlite" | |
def getch(): |
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 gimpfu import * | |
import os | |
def extract_layer(img, layer, path): | |
if pdb.gimp_item_get_visible(layer): | |
name = path + '/' + layer.name | |
if pdb.gimp_item_is_group(layer): | |
if not os.path.exists(name): |
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 gimpfu import * | |
import os | |
import yaml | |
def to_yaml(img, drawable): | |
name = pdb.gimp_image_get_filename(img) | |
if not name: | |
pdb.gimp_message("Export Visible Layers to YAML: File NOT saved!") |