Skip to content

Instantly share code, notes, and snippets.

@nerdshark
nerdshark / bad.cards.txt
Created April 7, 2023 20:08
ublock origin/adguard rules for bad cards - online cards against humanity
! https://bad.cards
bad.cards##:matches-path(/^/game/) :where(.adhider, #footer, [class^="MuiDrawer-"] > .MuiDrawer-paper > :not([class^=Mui])):remove()
bad.cards##:matches-path(/^/game/) [class|="MuiDrawer"] > div:style(padding-right: unset !important; height:100vh !important; width: 15vw !important)
@nerdshark
nerdshark / gist:36b5f2f97697b4e0f1fa0a0f66a3bb76
Created May 9, 2020 00:33
Rotten Tomatoes' 140 top animated movies
101 DALMATIANS
A BUG'S LIFE
A SCANNER DARKLY
A SILENT VOICE (KOE NO KATACHI)
AKIRA
ALADDIN
ALICE IN WONDERLAND
ALLEGRO NON TROPPO
AN AMERICAN TAIL
ANASTASIA
@nerdshark
nerdshark / notes.md
Created August 2, 2019 12:53
reformatted reddit post for /u/D_M_E

30 Essential Ideas Every Parent Needs to Know (about ADHD)

For the parts of this that sound like there’s not hope or you can’t change anything – most of this talk is using the baseline of no treatment/no meds. That is, if you do nothing, then don’t expect a change.

Part 1

  • ADHD is a developmental disability. It’s age inappropriate behavior, not abnormal behavior. It’s a delay of a normal trait. By early 30s’, these traits level off for the normal personal, but the ADHD person will always be behind. Without help/meds, the ADHD person is 30% behind their age on average. (10 real age = 7 executive age, 18 = 12, 21 = 14, 30 = 20)

  • First deficit is inappropriate inhibition. Not suppressing behaviors (motor and verbal), but it’s also not suppressing emotions, snap anger, impatience, quick decision making, not delaying to consider consequences.

@nerdshark
nerdshark / gist:fecc1cf87cb0fd111aa93dbb9e003f89
Created November 12, 2016 16:33
falafel recipe modifications
nerdshark's modifications to the falafel recipe at https://toriavey.com/toris-kitchen/2011/01/falafel/
no parsley
instead of ground coriander, substitute one fistful of chopped cilantro, probably about 1/3 cup, or more if you really like cilantro. alternatively, for convenience, you might be able to use cilantro chutney or adobo cilantro (culantro) cooking base. just mind the moisture of the 'dough'
instead of flour, try to squeeze some moisture out of the soaked and ground chickpeas, the onions, and the cilantro. this will help the 'dough' stay together better without altering the flavor
2tsp or more of black pepper
@nerdshark
nerdshark / search.cs
Last active October 9, 2015 22:46
Twitter search example
using System;
using System.Collections.Generic;
using System.Linq;
using Tweetinvi;
using Tweetinvi.Core.Enum;
using Tweetinvi.Core.Extensions;
using Tweetinvi.Core.Interfaces;
using Tweetinvi.Core.Parameters;
using System.Text;
@nerdshark
nerdshark / Get-DuplicateFiles.ps1
Created August 27, 2015 00:20
Powershell duplicate file search
function Get-DuplicateFiles
{
param
(
[Parameter(Mandatory=$true)]
[string] $Directory
)
$Duplicates = @{}
@nerdshark
nerdshark / gist:b7d8455d8268f396953e
Created March 22, 2015 04:15
leibniz summation pi estimator
void Main()
{
double pi = Enumerable.Range(0, 100000000).Aggregate(0d, (accumulated, iter) => {return accumulated + term(iter);});
(pi * 4).Dump();
}
double term(double n)
{
return numerator(n)/denominator(n);
}
@nerdshark
nerdshark / troublesome_settings.vssettings
Created September 29, 2014 04:03
troublesome vssettings file
<?xml version="1.0" encoding="UTF-8"?>
<UserSettings>
<ApplicationIdentity version="14.0" />
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment" />
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
@nerdshark
nerdshark / prezto-config
Last active August 29, 2015 14:05
prezto-config
#/usr/bin/env zsh
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
function Enter-HerokuSession
{
if ($env:HerokuPath -ne $null)
{
if (Test-Path $env:HerokuPath)
{
$heroku_binpath = "$env:HerokuPath\bin"
$heroku_ruby_binpath = "$env:herokupath\ruby-1.9.3\bin"
if (Test-Path $heroku_ruby_binpath)