Skip to content

Instantly share code, notes, and snippets.

@eunicekokor
eunicekokor / emotion-breakpoints.js
Created Oct 28, 2019
handling breakpoints /w emotion
View emotion-breakpoints.js
/** @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>
View gist:3ce558374614f88346e1abcfcf585262
Verifying my Blockstack ID is secured with the address 1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv https://explorer.blockstack.org/address/1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv
View gist:4e3090b3423520e59e483cf6a5475823
Verifying my Blockstack ID is secured with the address 1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv https://explorer.blockstack.org/address/1A7tfjS83WVde7eEoMUvAUK8SdEWatZCRv
View keybase.md

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
Responsive Grid Layouts Utilizing SASS
View _layout.scss
$content-width: 58.75rem;
$padding-col: 0.625rem;
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
}
@eunicekokor
eunicekokor / getpop.py
Last active Apr 29, 2016
to get the populations of each nyc neighborhood
View getpop.py
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 Feb 28, 2016 — forked from ttezel/gist:4138642
Natural Language Processing Notes
View gist:ae351283cc8d2dcdea45

#A Collection of NLP notes

##N-grams

###Calculating unigram probabilities:

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

In english..

View FetchTrackAndAnalysisData.js
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);
View index.html
<!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;
}
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: 'Lucida Grande', Helvetica, sans-serif;
color: white;