Skip to content

Instantly share code, notes, and snippets.

View jameshahn2's full-sized avatar

James Hahn II jameshahn2

View GitHub Profile
@jameshahn2
jameshahn2 / components.choose-topic.js
Created August 23, 2019 00:08 — forked from jenweber/components.choose-topic.js
What are Controllers For? Demo
import Ember from 'ember';
export default Ember.Component.extend({
});
@jameshahn2
jameshahn2 / controllers.application.js
Last active August 26, 2019 01:18 — forked from runspired/components.each-chunk.js
Alphabetical Table Grids
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jameshahn2
jameshahn2 / components.my-groups.js
Last active August 30, 2019 00:27 — forked from kumkanillam/components.my-posts.js
Discipline - Groups
import Ember from 'ember';
export default Ember.Component.extend({
disciplineGroups: Ember.computed('discipline', function(){
return this.get('disciplines').filter(discipline => discipline.disciplineId === this.get('discipline'));
})
/*
groupsFiltered: Ember.computed('discipline', 'search', function () {
@jameshahn2
jameshahn2 / news-locations.py
Created December 6, 2019 08:26 — forked from coblezc/news-locations.py
Extract locations mentioned in articles on front page of nytimes.com
from __future__ import unicode_literals
from bs4 import BeautifulSoup
import urllib
from selenium import webdriver
import time
import spacy
from twython import Twython
import json
# "loadin' the pipeline"