Skip to content

Instantly share code, notes, and snippets.

View kekscom's full-sized avatar

Jan Marsch kekscom

View GitHub Profile
@codepo8
codepo8 / ai-for-humans.md
Last active December 23, 2022 07:56
Link collection for the "AI for humans" talk

Slides

Intro and history of ML on the web

  • Autodraw by Google is a tool that allows you to doodle what you want to paint and turns it into a proper icon by detecting the outline and making an ML based assumption what it could be.
  • Quickdraw by Google is a game they created a few years before Autodraw to train the model.
  • ReCaptcha is a CAPTCHA engine that feeds the data back into Google's ML systems. For example, currently being asked to detect street signs or cars is a good indicator that this data will go into the self-driving cars project.
@derhuerst
derhuerst / solutions.md
Last active September 27, 2016 13:07
my solutions for "return true to win"

my solutions for return true to win

  1. !0
  2. NaN
  3. (x=0)=>y=>++x
  4. Number.MAX_SAFE_INTEGER thanks @juliuste
  5. (Array.isArray=x=>!x,0),[]
@VolMi
VolMi / feeder
Last active December 22, 2015 17:59
stream precious random data to all intelligence services in the universe
#!/bin/bash
# Bashisms are embraced here and therefore used quite heavily.
#
# This script is meant to keep some folks a bit busy, who were never invited
# by yourself to share your data.
# The idea is that you use cloud storage to store your encrypted (real) files
# and additionally generate some randomized junk which should be
# indistinguishable from the encrypted data.
# We now do this by encrypting the junk as well.
#
@jareware
jareware / SCSS.md
Last active May 19, 2024 14:03
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@willhardy
willhardy / encode_selection.js
Created August 9, 2012 15:28
Encoding selection of integers in a short, URL-friendly string
/*
A few functions for encoding a selection as a short, USL-friendly string.
This can be used with history.js to update the URL based on the current selection and eventually decode it and display the relevant selection.
NB MS won't like "const"
*/
@rapodaca
rapodaca / gist:1241613
Created September 26, 2011 04:31
Distance from a point to a line or segment.
/**
* See: http://jsfromhell.com/math/dot-line-length
*
* Distance from a point to a line or segment.
*
* @param {number} x point's x coord
* @param {number} y point's y coord
* @param {number} x0 x coord of the line's A point
* @param {number} y0 y coord of the line's A point
* @param {number} x1 x coord of the line's B point