Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
sheltering in place

Andrew Ng ayn

🏠
sheltering in place
View GitHub Profile
View acnh_fossils.md

ACNH Fossils

Extras

  • Acanthostega
  • Amber
  • Ankylo skull x 2
  • Ankylo torso x 2
  • Anomalocaris
  • Archelon skull
  • Australopith x 2
  • Brachio tail
@ayn
ayn / turnip exchange.js
Created Jul 2, 2020
sort turnip by prices desc on turnip exchange lol
View turnip exchange.js
var jq = document.createElement('script');
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
function sortUsingNestedText(parent, childSelector, keySelector) {
var items = parent.children(childSelector).sort(function(a, b) {
var vA = parseInt(jQuery(keySelector, a).text().substring(0, " Bells".length - 1))
@ayn
ayn / BLM + Anti-Racist Parenting.md
Last active Jun 12, 2020
#BLM parenting info from Tinker
View BLM + Anti-Racist Parenting.md

BLM Instagram + Education Links for Kids

  • Teaching kids why responding, "All Lives Matter" is not OK:

"Saying "All Lives Matter" is like screaming, "I have a birthday too!" at someone else's birthday party. Everyone has a birthday, and they are all special, but today we are celebrating ______'s birthday"

Books and Book Lists

(Quick note to parents: be careful when choosing books for your diverse book library. Sometimes a book may have good intentions but still uphold racist values. For example, I came across a book where it was trying to teach equity for all, however all the illustrations only showed white people solving problems for people of color and Black people (I forgot the name of the book :( )

View gist:06aa1e094426a48a823f70b8fa58e7bd
https://www.paypal.me/peoplesprograms Oakland Bail fund that is directly freeing black people today. Cost to bail someone on average is $8000. If you want to contribute more than $1000, hit me up and i'll get you wire instructions. Timing is critical. More than 50 black youths are headed to Santa Rita jail which has confirmed cases of coronavirus. https://www.nbcbayarea.com/news/local/east-bay/sheriffs-office-updates-covid-10-count-at-santa-rita-jail/2288259/
George Floyd Memorial Fund • Website: https://www.gofundme.com/f/georgefloyd • About: This fund is established to cover funeral and burial expenses, mental and grief counseling, lodging and travel for all court proceedings, and to assist the Floyd family in the days to come as they continue to seek justice for George. A portion of the funds will also go to the Estate of George Floyd for the benefit and care of his children and their educational fund.
I Run With Maud • Website: https://www.gofundme.com/f/i-run-with-maud • About: This fundraiser was desig
@ayn
ayn / Radarr.out
Last active Dec 4, 2019
indexers stats
View Radarr.out
Dognzb.cr|127
NZBgeek|79
Slug|59
Simplynzbs|16
fastNZB|9
NzbNoob|2
View vdot.md
VDOT 1500 Mile 3k 2mi 5k 10k 15k HM M VDOT
55 4:57 5:21 10:37 11:28 18:22 38:06 58:33 1:24:18 2:56:01 55
@ayn
ayn / ViewController.swift
Created Sep 17, 2015
Twitter accounts picker, Garmin Connect devs need this shit.
View ViewController.swift
//
// ViewController.swift
// TwitterAccountsDemo
//
import UIKit
import Accounts
class ViewController: UIViewController {
var twitterAccount: ACAccount? = nil {
View CommonCrypto.md

Add CommonCrypto/module.map:

module CommonCrypto [system] {
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h"
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonRandom.h"
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h"
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCryptor.h"
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/CommonCrypto/CommonCrypto.h"
  header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/CommonCrypto/CommonRandom.h"
View -
brew link openssl