Skip to content

Instantly share code, notes, and snippets.

View BekaValentine's full-sized avatar

Rebecca Valentine BekaValentine

View GitHub Profile
@BekaValentine
BekaValentine / gist:6291c1c43cf67d9c9c92160d7d58fa81
Last active March 19, 2019 17:24
javascript-return-value-issues - ForEachCallbackReturnsValue.ql

Overview

  • time: Tue Mar 19 2019 10:19:52 GMT-0700 (Pacific Daylight Time)
  • host: Starry-Wisdom.local
  • dir: /private/var/folders/_s/v8ml85912018y80t2tg7k0s00000gn/T/dist-compare__XXXX.EASqP85u
  • shas: 2fc44439fedcbb74e10681a20baf4027a39498d6
  • projects: 5
  • options: --queries /Users/beka/Projects/Semmle/code-for-dist-compare/ql/javascript/ql/src/Expressions/ForEachCallbackReturnsValue.ql

Timing

Project 2fc44439fedcbb74e10681a20baf4027a39498d6
@BekaValentine
BekaValentine / gist:cbef2cd3bd8aaa23621d57afea12792d
Last active March 19, 2019 17:25
javascript-return-value-issues - ArrayCallbackDoesntReturnValue

Overview

  • time: Tue Mar 19 2019 10:14:07 GMT-0700 (Pacific Daylight Time)
  • host: Starry-Wisdom.local
  • dir: /private/var/folders/_s/v8ml85912018y80t2tg7k0s00000gn/T/dist-compare__XXXX.i4l7DRUp
  • shas: 2fc44439fedcbb74e10681a20baf4027a39498d6
  • projects: 5
  • options: --queries /Users/beka/Projects/Semmle/code-for-dist-compare/ql/javascript/ql/src/Expressions/ArrayCallbackDoesntReturnValue.ql

Timing

Project 2fc44439fedcbb74e10681a20baf4027a39498d6
@BekaValentine
BekaValentine / gist:546beb3c95ee3b3f71ad13a0cb221aaf
Last active March 19, 2019 17:25
javascript-return-value-issues - MissingReturnValueGetsUsed.ql

Overview

  • time: Tue Mar 19 2019 10:17:57 GMT-0700 (Pacific Daylight Time)
  • host: Starry-Wisdom.local
  • dir: /private/var/folders/_s/v8ml85912018y80t2tg7k0s00000gn/T/dist-compare__XXXX.YxyJ6b66
  • shas: 2fc44439fedcbb74e10681a20baf4027a39498d6
  • projects: 5
  • options: --queries /Users/beka/Projects/Semmle/code-for-dist-compare/ql/javascript/ql/src/Expressions/MissingReturnValueGetsUsed.ql

Timing

Project 2fc44439fedcbb74e10681a20baf4027a39498d6
Sometimes, the value of a thing isn't entirely relevant. That is to say, if it's undefined, it's not a huge problem. For example, if the test in an `if` statement is in fact undefined, no big deal, because it undergoes implicit conversion to `false`. On the other hand, sometimes it does matter, eg. as an argument to multiplication. Even in some cases where implicit conversion happens, such as an argument to string concatenation, it's probably not intended that the argument be undefine.
The following are places where the value of the thing in the underscore position DEFINITELY matters:
Objects:
indexee: _[prop]
index: obj[_]
property accessee: _.prop
creation: new _, new _(args)
prop assignment: _(.prop)+ as an LHS of an assignment

Silicon Valley: the final frontier. These are the voyages of the starship Techbro Manarchist. It's mission: to boldly go where every cisheteronormative patriarchal racist trashheap has gone before.

Remember when the web was this utopian dream? When there was this feeling that anything was possible on the net, even a better future? Yeah, right. Maybe a handful of very privileged folx, mostly cishet white dudes. But this whole phenomenon has been broken since the very beginning. Since before the beginning! The tech industry, higher education (ESPECIALLY STEM), hacker culture, they've all been full of garbage since the outset.

Oh sure, there's some rad folx, some cool projects. It's not EXCLUSIVELY bad. But there's still so much sexism, racism, homophobia, transphobia, ableism, and on and on. It sucks! If I hear another rape-denialist knob prattle on about how LeetHackerDude was framed by the FBI or CIA whatever, or about how making an active effort to include more black people is ReVeRsE rAcIsM, I'll cut his

Queerious Labs is a new queer, anarchafeminist arts and technology oriented creative space and community workshop in SoMa, SF. We were started partially in response to frustrations with the dominant tech and hacker culture, which has refused to deal with its rampant sexism, racism, queerphobia, ableism, etc. in productive ways. Queerious Labs is for queer folx, and marginalized folx more generally, to meet, learn, hack, and make, in a safe and welcoming environment.

Nail Stamp Circuits

A project to figure out how to make electronic circuits on painted fingernails, using nail stamping and conductive nail polish to make the traces, the goal being to put surface mount LEDs onto nails and maybe blink them.

Meetups?

Ideally we'd have a regular (weekly or bi-weekly) event where people get together and hack on the project at Queerious Labs.

Sub-components

import sys
from time import sleep
import random
import cursor
class Renderer:
def __init__(self, width, height):
-- So basically, consider the follwing type class definition:
class Functor f => MonoidalApplicative f where
unitA :: f ()
pairA :: f a -> f b -> f (a,b)
-- We can make a Maybe instance like so:
instance MonoidalApplicative Maybe where
unitA = Just ()