Skip to content

Instantly share code, notes, and snippets.

View Zishan-Rahman's full-sized avatar
⚙️
Due to circumstances that made me busy, I'll be slower to respond, but I'll try!

Zishan Rahman Zishan-Rahman

⚙️
Due to circumstances that made me busy, I'll be slower to respond, but I'll try!
View GitHub Profile
@Blaisorblade
Blaisorblade / ExtraSettings.tex
Created February 2, 2012 11:13
LaTeX listings: add support for Scala
% Other listings-related settings from
% http://lampsvn.epfl.ch/trac/scala/export/26099/scala-tool-support/trunk/src/latex/scaladoc.sty
% activate the language and predefine settings
\lstset{
language=Scala,%
xleftmargin=4mm,%
aboveskip=3mm,%
belowskip=3mm,%
fontadjust=true,%
columns=[c]fixed,%
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@hakre
hakre / iconv-l.txt
Created December 2, 2012 12:35
Iconv List of Encodings
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII
UTF-8
ISO-10646-UCS-2 UCS-2 CSUNICODE
UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11
UCS-2LE UNICODELITTLE
ISO-10646-UCS-4 UCS-4 CSUCS4
UCS-4BE
UCS-4LE
UTF-16
UTF-16BE
@janhaag
janhaag / AndYetItMovesSteam.sh
Created May 1, 2013 18:20
Fixed AYIM startup script for linux steam
#!/bin/bash
### And Yet It Moves' Simple Startscript
### Run, jump and turn the world upside-down with And Yet It Moves!
### Enjoy!
### webs
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
libdir="lib"
bin=lib/AndYetItMoves
@nbrew
nbrew / haxe_osx_manual_install.sh
Last active August 29, 2023 12:30
Remove and reinstall haxe and neko.
#!/bin/bash
mkdir -p ~/Downloads/src
cd ~/Downloads/src
function uninstall_haxe() {
sudo rm -rf /usr/bin/haxe /usr/bin/haxelib /usr/lib/haxe
}
function install_haxe() {
@gitaarik
gitaarik / git_submodules.md
Last active July 3, 2024 11:45
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@ungoldman
ungoldman / curl_post_json.md
Last active July 7, 2024 17:56
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active July 5, 2024 17:32
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@staringispolite
staringispolite / asciiputsonglasses
Last active May 27, 2024 09:28
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■