Skip to content

Instantly share code, notes, and snippets.

View jsbin.IkOSULAg.css
body {
background: url("http://imgur.com/lJhb8ek.png");
text-align: center;
margin:0;
padding: 0;
}
div {
padding: 10px;
}
View README.md

#Journal Project ##a modern day password journal

  • Start the project
  • Add a facebook login
    • Associate Facebook Login w/ Account
  • Figure out general UI schema
  • Add Date & Time
    • Associate Date & Time with posts
  • Add User Accounts
View jsbin.rogeheru.css
/*!
* Bootstrap v3.1.1 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
#first {
background-color:red;
width: 100%;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
img {
height: 300px;
width: 200px;
text-align: center;
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;
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 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);
@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..

@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 / _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;
}