This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Scroll all the way down on https://robinhood.com/account/history?type=orders | |
Paste this into the dev console | |
`totals` holds your overall cost basis for each position you've held | |
Do note that this is just a quick bang out and likely isn't 100% correct | |
*/ | |
const headers = Array.from(document.querySelectorAll('[data-testid="rh-ExpandableItem-buttonContent"]')).map(e => e.querySelectorAll('h3, h3 ~ span')) | |
const action_regex = /(.+?) (Market|(Stop )?Limit|(\$\d+ (Call|Put) (\d+\/\d+\/\d+))) (Buy|Sell)/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace AsyncPerf | |
{ | |
class Program | |
{ | |
const int MAXRUNS = 10000000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static int add(int x , int y) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Custom Subreddit Themes | |
// @namespace http://aaronholmes.net/ | |
// @version 0.1 | |
// @description Remove custom subreddit themes from every subreddit | |
// @author Aaron Holmes | |
// @match https://www.reddit.com/r/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Trampoline = (function () | |
{ | |
function Trampoline(func, baseConditionReachedFunc) | |
{ | |
var _this = this; | |
this.func = func; | |
this.baseConditionReachedFunc = baseConditionReachedFunc; | |
if (typeof func !== 'function') throw new Error('Wrong type'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var art=' :.+8.\n\ | |
I=.$= O\n\ | |
7O?7D?O~I$\n\ | |
,+Z?+OI+:77\n\ | |
~Z+?OO$OO7I\n\ | |
.IOD?=$ZZO,\n\ | |
OI~IZ+~8=,\n\ | |
DDDDDDDDDDDDDDDDDDDD DDDD8 8DDDDDDDDDDDDDDDDDDDDD 7Z~+Z+$7D+?\n\ | |
DDDDDDDDDDDDDDDDDDDD8 DDDD8 8DDDDDDDDDDDDDDDDDDDDD =$II$Z~IZ+\n\ | |
DDDD8 DDDDD DDDD8 DDDDD ?$:==:~$O\n\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
#ifdef WIN32 | |
#include <windows.h> | |
double get_time() | |
{ | |
LARGE_INTEGER t, f; | |
QueryPerformanceCounter(&t); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RegistryInformation | |
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<DeviceUpdateKey> | |
<KeyName>Software\Microsoft\Windows\CurrentVersion\DeviceUpdate</KeyName> | |
<Subkeys> | |
<RegistryKey> | |
<KeyName>Software\Microsoft\Windows\CurrentVersion\DeviceUpdate\Agent</KeyName> | |
<Subkeys> | |
<RegistryKey> | |
<KeyName>Software\Microsoft\Windows\CurrentVersion\DeviceUpdate\Agent\Engine</KeyName> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cb = function () | |
{ | |
var s = document.querySelector('head style:last-of-type'); | |
['/path/to/stylesheet/one.css','/path/to/stylesheet/two.css'] | |
.forEach(function (v) | |
{ | |
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = v; | |
s.parentNode.appendChild(l, s); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change this to the URL of your profile where you'd like to start deleting posts. | |
var startUrl = 'http://www.reddit.com/user/YOUR_USER_NAME/?count=100&after=WHATEVER_THE_TAG_IS'; | |
function reload(cb) | |
{ | |
var newdoc=undefined; | |
$.ajax(startUrl).success(function(data) | |
{ | |
newdoc=$(data); |