git config --global branch.autosetuprebase always
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
* { | |
box-sizing: border-box; | |
} | |
html, body { | |
height: 100%; | |
overflow: hidden; | |
white-space: nowrap; | |
} |
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 ( | |
"archive/zip" | |
"flag" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strings" |
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
### Keybase proof | |
I hereby claim: | |
* I am Hamcha on github. | |
* I am hamcha (https://keybase.io/hamcha) on keybase. | |
* I have a public key whose fingerprint is 7263 8B9E E0A4 4907 5546 3C9C A404 13D2 1021 EAEE | |
To claim this, I am signing this object: |
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
var folders = DriveApp.getFoldersByName("Università"); | |
var subfolder = null; | |
if (folders.hasNext()) { | |
var folder = folders.next(); | |
var subfolders = folder.getFoldersByName("Sbobine"); | |
if (subfolders.hasNext()) { | |
var folder = subfolders.next(); | |
var subsubfolders = folder.getFoldersByName("5o Anno"); | |
if (subsubfolders.hasNext()) { | |
var folder = subsubfolders.next(); |
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
// Speedcoding library by @hamcha | |
// ver. 2.1 | |
// Oval function by Deven Kalra | |
w=h=600;_w=window;_d=document;_fs=!w; | |
for(i in mf=Object.getOwnPropertyNames(Math))_w[mf[i]]=Math[mf[i]]; | |
function clear(){$.ce(0,0,w,h)} | |
function clearp(a){$.fillStyle="rgba(255,255,255,"+a+")";$.fc(0,0,w,h);$.fillStyle="#000"} | |
function f(){$.fl()} | |
function s(){$.sr()} |
I hereby claim:
- I am Hamcha on github.
- I am hamcha (https://keybase.io/hamcha) on keybase.
- I have a public key whose fingerprint is 35DD CAF8 2452 CFA6 B102 9AF3 5486 840A F825 0D9A
To claim this, I am signing this object:
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
% 0 - Not found | 1 - GG | 2 - GS | |
contains(_ ,_, [], _, 0). | |
contains(H, P, [H|_], P, 1). | |
contains(H, P, [H|_], Q, 2) :- P \== Q. | |
contains(H, P, [M|T], Q, O) :- H \== M, QQ is Q + 1, contains(H, P, T, QQ, O). | |
% Short version of contains/5 | |
contains(H, P, L, O) :- contains(H, P, L, 1, O). | |
% Increase GG or GS depending on result |
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 | |
# FastDL Done Right | |
# Edit below this | |
# I'm lazy and I didn't want to make prompts/cmdline stuff | |
# Base directory | |
basedir = "garrysmod" |
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 | |
SERVER_USER=<<your ssh user>> | |
SERVER_HOST=<<your ssh server address>> | |
PUBLIC_PATH="<<public url (ie https://myhost/pastes/)>>" | |
SERVER_PATH="<<server path (ie /var/www/pastes/)>>" | |
SERVER_FLAGS="<<additional flags (ex. custom ssh port)>>" |
NewerOlder