Skip to content

Instantly share code, notes, and snippets.

View distransient's full-sized avatar
🍜
Mmm noodles tasty

Kel distransient

🍜
Mmm noodles tasty
View GitHub Profile
@distransient
distransient / Euler1.js
Last active December 21, 2015 09:59
Eulerproject prob 1 solution
var eulerprob1 = {
multiples: [],
solver: function() {
for(i=0;i*3<1000;i++) {
this.multiples.push(i*3);
}
for(i=0;i*5<1000;i++) {
if(!(i*5 % 3 == 0)){
this.multiples.push(i*5);
}
1 Rootwalla
1 Ranger's Guile
17 Forest
2 Windstorm
2 Plummet
1 Encroaching Wastes
2 Accorder's Shield
1 Verdant Haven
2 Elvish Mystic
1 Kalonian Tusker
@distransient
distransient / gist:6535074
Created September 12, 2013 09:40
chroot into my crunchbang from live usb
sudo su
mount /dev/sda2 /mnt
mount /dev/sdb5 /mnt/usr
mount /dev/sdb6 /mnt/var
mount /dev/sdb7 /mnt/tmp
mount /dev/sdb8 /mnt/home
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
@distransient
distransient / shrek.txt
Created September 18, 2013 20:55
trigger warning: shrek
Written by
William Steig & Ted Elliott
SHREK
Once upon a time there was a lovely
princess. But she had an enchantment
@distransient
distransient / main.js
Created September 21, 2013 00:17
Basic node module
module.exports = function(a,b){
return a+b;
};
@distransient
distransient / gist:6645615
Created September 21, 2013 00:18
hiding vars
(function(){
var hidden;
})();
@distransient
distransient / style.css
Created October 3, 2013 06:35
Fixed header anchor fix
/*
* set 60px to whatever height your navbar is
* This works on any selector as long as you
* give it the :before pseudo-selector.
*
*/
div[id]:before{
display: block;
content: ""; /* IE fix I really forgot what for */
@distransient
distransient / data.json
Created October 6, 2013 02:55
User Data
{
username: "michael",
email: "humanoidanalog@gmail.com",
password: "sdf9dfj3kr2m3r09u",
items: [
{
name: "haute dress",
files: [
{
url: "stitchhub.com/img.jpg",
index - "http://stitch-hub.com/"
about - "http://stitch-hub.com/about"
profile - "http://stitch-hub.com/{{username}}"
item - "http://stitch-hub.com/{{username}}/{{item}}"
collection - "http://stitch-hub.com/{{username}}/{{collection}}"
account - "http://stitch-hub.com/account"
upload - "http://stitch-hub.com/upload"
login - "http://stitch-hub.com/login"
register - "http://stitch-hub.com/register"
@distransient
distransient / dg.exe
Created October 6, 2013 09:11
dg track list
Punk Grips - 13
1 - Beware
2 - Klink
3 - System Blower
!- I want it I need it (Death Heated)
!- Thru The Walls
!- Spread Eagle Cross The Block
!- Death Grips (Next Grips)
!- Full Moon (Death Classic)
!- Punk Weight