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
# | |
# Copyright (C) 2013 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |
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/local/bin/python3 | |
# | |
# feedfinder.py | |
# | |
# Utils for finding feeds | |
# | |
import sys | |
from datetime import datetime |
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
background-color: rgb(0, 163, 187); | |
background-color: rgb(161, 60, 180); | |
background-color: rgb(166, 50, 50); | |
background-color: rgb(241, 118, 167); | |
background-color: rgb(253, 87, 61); | |
background-color: rgb(255, 0, 122); | |
background-color: rgb(255, 0, 26); | |
background-color: rgb(27, 136, 122); | |
background-color: rgb(31, 161, 93); | |
background-color: rgb(93, 175, 221); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Umask Created Files Created Directories | |
------------------------------------------------------------- | |
000 666 (rw-rw-rw-) 777 (rwxrwxrwx) | |
002 664 (rw-rw-r--) 775 (rwxrwxr-x) | |
022 644 (rw-r--r--) 755 (rwxr-xr-x) | |
027 640 (rw-r-----) 750 (rwxr-x---) | |
077 600 (rw-------) 700 (rwx------) | |
277 400 (r--------) 500 (r-x------) |
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
Ctrl + A Go to the beginning of the line you are currently typing on | |
Ctrl + E Go to the end of the line you are currently typing on | |
Ctrl + L Clears the Screen, similar to the clear command | |
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. | |
Ctrl + H Same as backspace | |
Ctrl + R Let’s you search through previously used commands | |
Ctrl + C Kill whatever you are running | |
Ctrl + D Exit the current shell | |
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it. | |
Ctrl + W Delete the word before the cursor |
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
/* | |
// -> http://stackoverflow.com/questions/10113366/load-jquery-with-javascript-and-use-jquery | |
// -> http://muaz-khan.blogspot.de/2012/10/save-files-on-disk-using-javascript-or.html | |
// -> http://stackoverflow.com/questions/5404839/how-can-i-refresh-a-page-with-jquery/7609411#7609411 | |
*/ | |
(function() { | |
var getUriParamByName = function(name, href) { | |
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
var regexS = "[\\?&]"+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
#!/bin/bash | |
# colorizes an ant command | |
anttask="$1" | |
##################################################################### | |
echo -e "\033[31m### ANTTASK: ant $anttask ###\033[30m" | |
# Process command output |
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
package main | |
//import "fmt" | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
r := make([][]uint8, dy) | |
for i := range r { | |
r[i] = make([]uint8, dx) |
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
/** | |
* WurzelStellen.java | |
*/ | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; | |
/** |
NewerOlder