Skip to content

Instantly share code, notes, and snippets.

View milesrout's full-sized avatar

Miles Rout milesrout

View GitHub Profile
@milesrout
milesrout / takes_150_ms.py
Last active March 15, 2018 08:08
iterators are fantastic
def solve(su, cs):
for c in cs:
su1 = unifies(c.t1, c.t2, c.pos)
su = compose_subst(su1, su)
return su

"Oh Hermione," Harry said to the hand and barely started to ran away. She was just at Harry. "I think you can go back to the end of the students and seconds."

"I am trading themselves as my way to the troll," said Hermione and handed himself to his attention. "I am not a complete thing, also a scars of the living people to think it in some of the time and the problem. I got being the one that could hear the guys. This was his nervous members of the ones the past year gave me that he was still not hear anything because the chance that she was a friend in the Dark Arts World Luna, who was in the subject he had been so often and I asked them that was one chapter. He left him and then saw that Harry didn't know that the moment they were going to see what they were going on. When they were wondering how the entrance had chickened to make on her son that he was he he was a bit of detention to see his father, but Harry wouldn't be so of a wizardings. Lily was send a bit different and stared at him and walked up at

Harry Potter - 93 Diagon Alley - Twelve Days of Christmas.txt mentions Christmas 17 times in 3221 characters.
Harry Potter - Lily and James Love 4 ever - The Christmas Song.txt mentions Christmas 32 times in 5972 characters.
Harry Potter - Kerichi - Ghost of Christmas.txt mentions Christmas 7 times in 1069 characters.
Harry Potter - quidditchchick004 - Twelve Days of Christmas_ Harry Potter Style.txt mentions Christmas 18 times in 2726 characters.
Harry Potter - flying.high.forever - My Wizarding Christmas List.txt mentions Christmas 18 times in 2105 characters.
@milesrout
milesrout / gist:f2dd3f174ad39c280150496b470c42b5
Created December 16, 2017 07:45
HP Fanfic generated by char-rnn-tensorflow

qused reviewing by the windows in mid-coloor! Draco. Harry." She added continued by up next. He used about it.

The silver's forces of the same has resisually got.

"That descent, even a huss where Peter said, shiverate ride-mindective his lidstration I asked.

At least the question, drew as she finanged during her and first every ennieker. How? And he needsGoration after all.

Fred suce touched the Curios. She would have leathey." Draco cracked into Siristital he helded.

TARGET := a.out
PC_DEPS := gl glfw3
PC_CFLAGS := $(shell pkg-config --cflags $(PC_DEPS))
PC_LIBS := $(shell pkg-config --libs $(PC_DEPS))
SRCS := $(shell find src -name *.c)
OBJS := $(SRCS:%=build/%.o)
DEPS := $(OBJS:.o=.d)
@milesrout
milesrout / gist:be471f43cee5c4a52ed9492b0f606115
Created October 27, 2017 11:49 — forked from croxis/gist:6436553c3542ec692c1d
Rendering procedural planets.
Based on feedback from ChemicalR I'm cross posting all the things I've bookmarked in reguards to planet rendering here in the code forums.
[url=http://www.gamasutra.com/view/feature/3098/a_realtime_procedural_universe_.php]Sean O'Neil[/url]'s 4 2001 part series is considered a foundation for realistic large scale (planets on up) rendering. Most of these methods are now obsolete and replaced with faster methods and gpu shaders. His [url=http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html]atmospheric scattering[/url]method is still used often due to its relative simplicity, but it only produces earth atmospheres.
[url=http://acko.net/blog/making-worlds-1-of-spheres-and-cubes/]Steven Wittens[/url] 2009 multipart series is frequently linked to as I've searched for best practices in creating planets using modern methods. It is based on a cube with mesh texture and normalizes the vertex points into a sphere. The advantage to this method is that conventional terrain LOD methods, often used in first
@milesrout
milesrout / gist:0f3e210d89f799f004027900b0ef8c01
Created October 27, 2017 11:48 — forked from croxis/gist:f08d1ce071072b8efbc0
Trillek Single Solar System Arguments
In irc there was talk about FTL and the assorted gameplay issues with each method. Then I started thinking about other design and story issues trillek is having. Then I started thinking about my space game I haven't touched in a while.
A few years ago I saw a video similar to this one http://vimeo.com/40234826 and I was really struck by saturn's moons. Saturn has over 70 moons. That is a lot of surface area to explore and with assorted orbits around each moon, and saturn itself, that is a lot of gamespace. I also saw this picture http://misc.oranse.net/misc/wallpaper/earth.jpg taken from low Earth orbit and how amazing our planet looked from low orbit. I started designing a game with the setting of just our solar system that takes place during humanity's expansion into our solar system.
What if we used that setting, or a similar one, instead? What if trillek takes place in one solar system?
Using our solar system as a model: There are 4 terrestial planets. 4 gas giants. At least 4 dwarf planets and a numbe
magnet:?xt=urn:btih:1196d87e533c9bb87927550a02a04bff1e9dce60&dn=Game+of+Thrones+-+The+Complete+Season+3+[HDTV]&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://zer0day.ch:1337&tr=udp://open.demonii.com:1337&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://exodus.desync.com:6969
@milesrout
milesrout / endpoints
Last active October 8, 2017 22:43
OpenDota API
GET /matches/{id}
GET /players/{id}
GET /players/{id}/wl
GET /players/{id}/recentMatches
GET /players/{id}/matches
GET /players/{id}/heroes
GET /players/{id}/peers
GET /players/{id}/pros
GET /players/{id}/totals
GET /players/{id}/counts
type Double a = (a, a)
data DoubleTree a = DLeaf a | DBranch (DoubleTree a, DoubleTree a)
type List a = [a]
data ListTree a = LLeaf a | LBranch [ListTree a]
type Maybe a
data MaybeTree a = MLeaf a | MBranch (Maybe (MaybeTree a))
= MLeaf a | MJust (MaybeTree a) | MNothing