Skip to content

Instantly share code, notes, and snippets.

@nerdshark
nerdshark / gist:36b5f2f97697b4e0f1fa0a0f66a3bb76
Created May 9, 2020
Rotten Tomatoes' 140 top animated movies
View gist:36b5f2f97697b4e0f1fa0a0f66a3bb76
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 Aug 2, 2019
reformatted reddit post for /u/D_M_E
View notes.md

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.

View gist:fecc1cf87cb0fd111aa93dbb9e003f89
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 Oct 9, 2015
Twitter search example
View search.cs
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 Aug 27, 2015
Powershell duplicate file search
View Get-DuplicateFiles.ps1
function Get-DuplicateFiles
{
param
(
[Parameter(Mandatory=$true)]
[string] $Directory
)
$Duplicates = @{}
@nerdshark
nerdshark / gist:b7d8455d8268f396953e
Created Mar 22, 2015
leibniz summation pi estimator
View gist:b7d8455d8268f396953e
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);
}
View troublesome_settings.vssettings
<?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 Aug 29, 2015
prezto-config
View 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
View gist:c1a253e4c1e674ee5aa7
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)
@nerdshark
nerdshark / scalablegs-css-tiled-bg.css
Created Jan 24, 2012 — forked from kedano/scalablegs-css-tiled-bg.css
Blueprint style tiled background with only CSS (scalable.gs)
View scalablegs-css-tiled-bg.css
html{
background: repeat center;
background-color: #50555f;
/*WEBKIT*/
background-image:
/*VERTICAL LINES*/
-webkit-gradient(linear, left top, left bottom,
color-stop(0, rgba(255,255,255,.4)), color-stop(0.01, rgba(80,85,95,0)), color-stop(0.2, rgba(80,85,95,0)),
color-stop(0.2, rgba(255,255,255,.1)), color-stop(0.21, rgba(80,85,95,0)), color-stop(0.4, rgba(80,85,95,0)),
color-stop(0.4, rgba(255,255,255,.1)), color-stop(0.41, rgba(80,85,95,0)), color-stop(0.6, rgba(80,85,95,0)),