Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / ppcg.svg
Created January 21, 2018 00:55
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m-ender
m-ender / simple-challenges.md
Last active February 24, 2022 23:07
Simple challenges on CodeGolf.SE to take new programming languages for a spin.
@matsjoyce
matsjoyce / tag.gif
Last active November 7, 2017 19:27
The new SO tags!
tag.gif
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@CarterA
CarterA / Brute Force Primality Test.c
Created January 10, 2012 06:26
Primality Testing and Factorization in C
int bruteForcePrimalityTest(long int n) {
for (long int i = 2; i < n; i++) {
if (n % i == 0) return 0;
}
return 1;
}
<script src=https://gist.github.com/raw/946328/gistfile1.txt ><\/script>
@gebi
gebi / out.b
Created November 3, 2010 16:13
convert text to brainfuck
>++++++++[<++++++++>-]<-->
>++++++[<+++++++>-]<+>
,[[-<.>]<+++.---<.>>,]