Skip to content

Instantly share code, notes, and snippets.

The Art of Computer Programming
- Algorithms (by Dasgupta, Papadimitriou, and Vazirani)
- Algorithm Design (by Kleinberg and Tardos)
- Feynman Lectures on Physics
- Landau & Lifschitz's series
@siebertm
siebertm / gist:192658
Last active June 3, 2024 09:22
sample fake names for filling your fake databases during software development. Any relation to real people is a coincidence!
This file has been truncated, but you can view the full file.
GivenName,Surname,StreetAddress,City,ZipCode,EmailAddress,TelephoneNumber
Karolin,Gottlieb,Am Borsigturm 61,Dormagen Zons,41541,Karolin.Gottlieb@dodgit.com,02133 01 62 83
Philipp,Schaefer,Schmarjestrasse 82,Bahnitz,14715,Philipp.Schaefer@pookmail.com,033870 32 38
Claudia,Maurer,Wallstrasse 72,Hammerstein,56598,Claudia.Maurer@pookmail.com,02635 99 06 20
Luca,Neustadt,Ellmenreichstrasse 10,Obertrubach,91286,Luca.Neustadt@mailinator.com,09197 39 92 27
Frank,Schmitz,Borstelmannsweg 32,Coburg,96409,Frank.Schmitz@spambob.com,09561 78 15 75
Ute,Mehler,Flughafenstrasse 59,Weiding,92557,Ute.Mehler@trashymail.com,09673 12 09 48
Marko,Reiniger,Augsburger Straße 20,Herne,44629,Marko.Reiniger@pookmail.com,02323 95 65 13
Anja,Theissen,Leipziger Straße 78,Zierenberg,34289,Anja.Theissen@mailinator.com,05606 71 60 26
Franziska,Bürger,Prenzlauer Allee 6,Markkleeberg,04409,Franziska.Bürger@pookmail.com,0341 86 02 37
var abs = Math.abs;
var sqrt = Math.sqrt;
var floor = Math.floor;
var min = Math.min;
var V3 = function(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
@geraldyeo
geraldyeo / fastTrig.as
Created May 24, 2011 03:52
Fast and accurate sine/cosine approximation
//1.27323954 = 4/pi
//0.405284735 =-4/(pi^2)
/*********************************************************
* low precision sine/cosine
*********************************************************/
//always wrap input angle to -PI..PI
if (x < -3.14159265)
x += 6.28318531;
@scturtle
scturtle / ftpserver.py
Created June 20, 2011 16:03
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')
@hatahet
hatahet / gist:2309774
Created April 5, 2012 10:24 — forked from imrehg/gist:1526107
Essay on Realistic Space Combat
(originally from http://forums.spacebattles.com/showthread.php?t=131056 by Memphet'ran)
A little (or not so little) essay I wrote on what realistic space combat would be like. Thought you guys might find it interesting. Sorry, I admit it IS a bit long, I apologize if it's somewhat intimidating.
---------
Space battles are ubiquitous in science fiction. Usually it seems to look a lot like some variation on WWII sea battles: fighters whizz around and engage in space dogfights as the great battleships pound each other with death rays. But in fact this is probably a very unrealistic depiction of what a space battle would look like. I’m sure I’m not the only one who’s wondered “so what would a space battle really look like?” In this essay I will attempt to answer that question as best I can. For those who are interested, somebody else has already tackled the question on Strange Horizons, but I believe that essay is flawed in several ways, most notably the conclusion that stealth will be important in space warfa
@PtrMan
PtrMan / Art1.py
Last active February 19, 2021 14:17
Python implementation of Art1
# code is translated from orginal implementation from
# http://77.93.202.96/~xhudik/art/
from random import randint
class Art1(object):
def _countOnes(self, Instance):
Count = 0
for Element in Instance:
@thuandt
thuandt / install_xenserver_usb.md
Created October 30, 2013 15:56
Create XenServer USB Install

Installing XenServer 6.2.0 from a USB Stick

  • Download the XenServer 6.2.0 ISO image

  • Format a USB stick using FAT32.

  • Use unetbootin to install the ISO to the USB stick. Use the “DiskImage” option instead of the “Distribution” one, and point it right to the ISO file.

  • Now we need to fix up some boot stuff (All paths are relative to the root of the USB drive)

@rxaviers
rxaviers / gist:7360908
Last active June 29, 2024 18:36
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mymindleaks
mymindleaks / gist:8126305
Created December 25, 2013 19:48
prolog rules for integral calculus symbolic computation
/****************** Integral Calculus ***************/
int( 0 , X , 0).
int( C , X , C * X ):-
atomic(C),
C \= X, !.
int( X , X , 0.5 * X^2 ):- !.
int( 1 / X , X , ln(X) ):- !.