Skip to content

Instantly share code, notes, and snippets.

const config = {
type: 'scatter',
data: data,
options: {
scales: {
y: {
beginAtZero: true
},
x: {
type: 'time',
@eunicekokor
eunicekokor / emotion-breakpoints.js
Created October 28, 2019 15:06
handling breakpoints /w emotion
/** @jsx jsx */
import { jsx, css } from '@emotion/core'
const breakpoints = {'mobile': 320, 'tablet':768, 'desktop':992, 'desktop-xl': 1200};
const mq = (size) => `@media (min-width: ${breakpoints[size]}px)`
render(
<div>
Verifying my Blockstack ID is secured with the address 1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv https://explorer.blockstack.org/address/1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv
Verifying my Blockstack ID is secured with the address 1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv https://explorer.blockstack.org/address/1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv

Keybase proof

I hereby claim:

  • I am eunicekokor on github.
  • I am eunice (https://keybase.io/eunice) on keybase.
  • I have a public key ASDQTbkh4PuEqTlN8wppsFRcZyvv3J26Du-d-7LWLiE3lgo

To claim this, I am signing this object:

@eunicekokor
eunicekokor / _layout.scss
Created May 26, 2016 15:30
Responsive Grid Layouts Utilizing SASS
$content-width: 58.75rem;
$padding-col: 0.625rem;
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
}
@eunicekokor
eunicekokor / getpop.py
Last active April 29, 2016 19:16
to get the populations of each nyc neighborhood
def get_population():
with open('population.json') as f:
contents = json.load(f)['data']
pop_dict = {}
for i,stuff in enumerate(contents):
if '2010' in contents[i]:
pop_dict[str(stuff[12])] = int(stuff[13])
return pop_dict
@eunicekokor
eunicekokor / gist:ae351283cc8d2dcdea45
Created February 28, 2016 03:31 — forked from ttezel/gist:4138642
Natural Language Processing Notes

#A Collection of NLP notes

##N-grams

###Calculating unigram probabilities:

P( wi ) = count ( wi ) ) / count ( total number of words )

In english..

function fetchSongInfo(track) {
info('Getting song info for ' + track.name + ' by ' + track.artists[0].name);
var url = 'http://developer.echonest.com/api/v4/track/profile?api_key=N6E4NIOVYMTHNDM8J&callback=?';
var track_id = fromSpotify(track.uri);
$.getJSON(url, { id: track_id, format:'jsonp', bucket : 'audio_summary'}, function(data) {
if (checkResponse(data)) {
info("");
showTrackInfo(data.response.track);
fetchAnalysis(data.response.track);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TraderBae</title>
<style id="jsbin-css">
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}