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
# uses http://github.com/aaronsw/html2text | |
HTML2TEXT=~/bin/html2text/html2text.py | |
for f in `find | grep html$ | cut -b 3-` | |
do | |
echo $f | |
$HTML2TEXT $f > ${f%.html}.md | |
# rm $f | |
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
#include <X11/Xlib.h> | |
#include <iostream> | |
#include <unistd.h> | |
int main(void) { | |
Display* dpy = XOpenDisplay(0); | |
int scr = XDefaultScreen(dpy); | |
Window root_window = XRootWindow(dpy, scr); | |
int height = DisplayHeight(dpy, scr); |
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
import kivy | |
kivy.require('1.0.6') # replace with your current kivy version ! | |
from kivy.app import App | |
from kivy.uix.label import Label | |
from kivy.uix.button import Button | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.gridlayout import GridLayout | |
class MyApp(App): |
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
import kivy | |
kivy.require('1.0.6') # replace with your current kivy version ! | |
import datetime | |
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.uix.label import Label | |
from kivy.uix.button import Button | |
from kivy.uix.image import Image |
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 | |
import sys | |
import copy | |
import math | |
import random | |
class Board: | |
def __init__(self, board_size, goal): | |
''' initialize a board''' | |
self.board_size = board_size |
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
JP 1800H | |
ORG 1800H | |
MAIN: | |
CALL DISPLAY | |
CALL TOUCH | |
JP MAIN | |
HLT | |
ORG 1850H |
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 | |
[email protected] | |
YD_DIR="app-root/data" | |
DIR="video" | |
if [ "$1" == "install" ] | |
then | |
# SSH To Server | |
ssh $SSH_ACCOUNT 'bash -s'<<<" | |
wget https://yt-dl.org/downloads/2013.10.07/youtube-dl -O \$OPENSHIFT_HOMEDIR/$YD_DIR/youtube-dl --no-check-certificate |
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 | |
import json | |
import os | |
from datetime import datetime | |
from shutil import copy | |
from urllib.error import HTTPError | |
from urllib.request import quote | |
from urllib.request import urlopen | |
from xml.etree import ElementTree |
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
<?php | |
function rmTree($path){ | |
$pathes = array($path); | |
while(true){ | |
if (count($pathes) == 0){ | |
break; | |
} | |
$path = array_pop($pathes); |
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 | |
for i in `ls` | |
do | |
echo $i | |
# actions | |
done |
OlderNewer