Skip to content

Instantly share code, notes, and snippets.

View Querela's full-sized avatar

Erik Körner Querela

View GitHub Profile
@Querela
Querela / colors.css
Last active February 26, 2024 09:23
[list][image][url] Google Docs Anonymous User Images
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);
@Querela
Querela / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Querela
Querela / umask
Created February 8, 2014 23:43 — forked from thuandt/umask
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------)
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
@Querela
Querela / gist:7896095
Last active February 22, 2021 09:27
[js][ff][bookmark][youtube][yt] Firefox Bookmarklet Youtube Image
/*
// -> 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+"=([^&#]*)";
@Querela
Querela / antx.sh
Last active December 27, 2015 10:59
[*nix][shell][script][java][build] Colorize ant output and remove warnings.Usage: antx.sh <anttarget>
#!/bin/bash
# colorizes an ant command
anttask="$1"
#####################################################################
echo -e "\033[31m### ANTTASK: ant $anttask ###\033[30m"
# Process command output
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)
@Querela
Querela / WurzelStellen.java
Last active December 16, 2015 11:59
[java] Nachkommastellen von Wurzel 2 ...bis 11 Stellen oder so gehts danach nur noch 99999999...also ok bis: 1.41421356237
/**
* WurzelStellen.java
*/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**