Skip to content

Instantly share code, notes, and snippets.

View danielsamuels's full-sized avatar

Daniel Finch danielsamuels

View GitHub Profile
@danielsamuels
danielsamuels / Consumables
Last active August 20, 2016 12:43
House move stuff
Light bulbs ★
Bleach / toilet cleaner / anti bacterial spray ★
Kitchen sponges ★
Electrical / gaffer tape
Wash powder / liquid
Dishwasher tablets
Ketchup
Vinegar
Oil
BBQ sauce
@danielsamuels
danielsamuels / english.stop
Created August 2, 2016 10:56
PostgreSQL English stop words
$ cat /usr/share/postgresql/9.3/tsearch_data/english.stop
i
me
my
myself
we
our
ours
ourselves
you
This file has been truncated, but you can view the full file.
(rocket-league-replays) Daniel-Samuels-MacBook-Pro:rocket-league-replays danielsamuels$ python manage.py replay_hits 42360
0 {'Class': 'TAGame.Ball_TA', 'Position': [0, 0, 93], 'TAGame.RBActor_TA:ReplicatedRBState': {'Type': 'RigidBodyState', 'Value': {'LinearVelocity': None, 'Position': [0, 0, 93], 'Sleeping': True, 'AngularVelocity': None, 'Rotation': [-1.0000305, -1.0000305, -1.0000305]}}, 'Name': 'Archetypes.Ball.Ball_Default', 'TAGame.Ball_TA:GameEvent': {'Type': 'FlaggedInt', 'Value': [True, 3]}, 'Rotation': [0, 0, 0]}
1 {'Class': 'TAGame.Ball_TA', 'Position': [0, 0, 93], 'TAGame.RBActor_TA:ReplicatedRBState': {'Type': 'RigidBodyState', 'Value': {'LinearVelocity': None, 'Position': [0, 0, 93], 'Sleeping': True, 'AngularVelocity': None, 'Rotation': [-1.0000305, -1.0000305, -1.0000305]}}, 'Name': 'Archetypes.Ball.Ball_Default', 'TAGame.Ball_TA:GameEvent': {'Type': 'FlaggedInt', 'Value': [True, 3]}, 'Rotation': [0, 0, 0]}
2 {'Class': 'TAGame.Ball_TA', 'Position': [0, 0, 93], 'TAGame.RBActor_TA:ReplicatedRB
@danielsamuels
danielsamuels / distance.txt
Created June 19, 2016 09:33
Player -> Ball distance
This file has been truncated, but you can view the full file.
(rocket-league-replays) Daniel-Samuels-MacBook-Pro:rocket-league-replays danielsamuels$ python manage.py replay_hits 42360
Actor ID: 20. Distance: 4608.610311145866
Actor ID: 14. Distance: 4608.610745116146
Actor ID: 20. Distance: 4608.610311145866
Actor ID: 14. Distance: 4608.610745116146
Actor ID: 20. Distance: 4608.610311145866
Actor ID: 14. Distance: 4608.610745116146
@danielsamuels
danielsamuels / responsive.html
Created June 14, 2016 13:26
responsive.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
background-color: #000;
color: #fff;
}
/*
Version 3.2
Stylesheet by Cryptonaut
Last modified: 01 MAY 2015
Details: This is a custom template made by /u/Cryptonaut.
Find out more on /r/Naut.
--------------------------------------------------------------------------
[Changelog]
v1.0 - Initial Design - /r/Naut Template
@danielsamuels
danielsamuels / pre-push
Created May 18, 2016 15:09
pre-push hook
#!/bin/bash
. ~/.bash_profile
. .venv/bin/activate
pip install -q --disable-pip-version-check pylint pylint-django pylint-mccabe isort
IN_TEST=false
IN_OVERRIDE=false
FAILED=false
Processing 36141 - 62223E704ECB285824DCA4AD090D2536
0
OrderedDict([('0n_GameReplicationInfoArchetype',
{'actor_id': 0,
'actor_type': 'GameInfo_Soccar.GameInfo.GameInfo_Soccar:GameReplicationInfoArchetype',
'data': {'flag': False, 'vector': (0, 0, 0)},
'new': True,
'startpos': 64}),
('1n_GameEvent_SoccarSplitscreen',
{'actor_id': 1,
11,
[
403, # Body
0, # Decal. 330 = Flames
376, # Wheels. 386 = Christiano, 376 = OEM
63, # Rocket Trail. 578 = Candy Corn
0, # Antenna. 1 = 8-Ball
0, # Topper. 796 = Deadmau5
0 #
],
header>div.row>div.small-6.medium-3.columns.logo-container.left>a[href="/"].secondary>img[src="https://static.rocketleaguereplays.com/build/img/social_logo.png"]+span.logo-text{Rocket League}>br+ul.small-6.medium-9.columns.text-right.primary-navigation>li>a[href="/replays/"]{Replays}+li>a[href="/replay-packs/"]{Replay Packs}+li>a[href="/upload-replay/"]{Upload Replays}+li>a[href="/news/"]{News}+li>a[href="/patreon/"]{Patreon}+li>a[href="/api/"]{API}+li{&middot;}+li>a[href="http://www.reddit.com/r/RocketLeagueReplays/"][target="_blank"][title="Reddit"].socicon{C}+li>a[href="http://www.twitter.com/RLReplays"][target="_blank"][title="Twitter"].socicon{a}+div.row.secondary-navigation>div.medium-3.columns.>span[title="This is your rating for ranked duels."]{Duels:}>img[src="https://static.rocketleaguereplays.com/img/tiers/icons/4.png"][alt="Prospect Elite"][title="Prospect Elite"]+br+span[title="This is your rating for ranked doubles."]{Doubles:}>img[src="https://static.rocketleaguereplays.com/img/tiers/icons/5.pn