Skip to content

Instantly share code, notes, and snippets.

View egeriis's full-sized avatar
🤗

Ronni Egeriis Persson egeriis

🤗
View GitHub Profile
// flow-typed signature: 98cd441387f8a4cc44d716323e04454f
// flow-typed version: <<STUB>>/json-api_v1.0.0/flow_v0.72.0
/**
* This is an autogenerated libdef stub for:
*
* 'json-api'
*
* Fill this stub out by replacing all the `any` types.
*
@egeriis
egeriis / dummy.jsx
Last active September 22, 2018 12:24
const RandomComponent = () => <div />;
const Header = () => (
<React.Fragment><TableTitle /><div>...</div></React.Fragment>
);
<Wrapper Header={RandomComponent} Main={MainComponent} />
<Wrapper header={<Header />} footer={<Footer />}>
<div>
{
"weeks":[
{
"no":1,
"games":[
{
"id":"PIT.NE",
"kickoff":{
"date":"2015-09-11 00:30:00.000000",
"timezone_type":1,
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v1.0.2
Comment: https://keybase.io/crypto
wcBMAyKkQLTRbBx1AQf9HYuaek50BFS+vh4TKJUN6lpPn5gDQUzuU6B4ppKSSi3c
h+Pgv0fud/vPBe3gBObUaqcxiBpUm0oJSuAKyaX5Wo+MnfadxmCPRyDHxRny9JmO
b0jBM14RF0KKAGCWVgk1TLHoRabgslKr9dI3peUusKlWk4/4WAW2KZP6v6H9A12h
pgbs2e5igvuC/M+5QLUTBq+extluCauqYWRaDjw1E97Bhpc7h+a9jHi3h7Jyy9Tb
1jAi2Dt/nRQQ23sjM9trhnhbBVOD4BxBKI0nJPiyZiSlNTnM4j9mM7tr2IuKnGxM
jWD3Y0QFjV5MIr9c9ToHpGmiVKMXYWzseZ85QDCCetLAwwE7FwwI8n2cgEy/4QeO

Keybase proof

I hereby claim:

  • I am egeriis on github.
  • I am egeriis (https://keybase.io/egeriis) on keybase.
  • I have a public key whose fingerprint is 9FBC 6145 D861 388C A230 45F7 51CE 1FAE F2A5 38FD

To claim this, I am signing this object:

@egeriis
egeriis / nfl-schedule-2014.json
Created July 3, 2014 16:42
NFL Schedule 2014
[
{
"week": 1,
"game_days": [
{
"date": "2014-09-04",
"matches": [
{
"id": "9.26",
"timestamp": "Thu, 04 Sep 2014 20:30:00 -0400",
@egeriis
egeriis / TrainsIterator.php
Created October 16, 2013 14:12
An iterator example which provides a memory efficient way of handling arrays of objects.
<?php
class Trains implements Iterator
{
protected $objectIds;
private $idx = 0;
public function __construct($objectIds)
{
$this->objectIds = $objectIds;
@egeriis
egeriis / nfl_schedule_2013.json
Created April 19, 2013 14:42
Download NFL Schedule 2013 as JSON
[{"week":1,"game_days":[{"date":"2013-09-05","matches":[{"id":"33.7","timestamp":"Thu, 05 Sep 2013 20:30:00 -0400","away":{"id":"33","abbr":"bal","slug":"baltimore-ravens","name":"Baltimore","nick":"Ravens"},"home":{"id":"7","abbr":"den","slug":"denver-broncos","name":"Denver","nick":"Broncos"}}]},{"date":"2013-09-08","matches":[{"id":"17.2","timestamp":"Sun, 08 Sep 2013 13:00:00 -0400","away":{"id":"17","abbr":"ne","slug":"new-england-patriots","name":"New England","nick":"Patriots"},"home":{"id":"2","abbr":"buf","slug":"buffalo-bills","name":"Buffalo","nick":"Bills"}},{"id":"4.3","timestamp":"Sun, 08 Sep 2013 13:00:00 -0400","away":{"id":"4","abbr":"cin","slug":"cincinnati-bengals","name":"Cincinnati","nick":"Bengals"},"home":{"id":"3","abbr":"chi","slug":"chicago-bears","name":"Chicago","nick":"Bears"}},{"id":"15.5","timestamp":"Sun, 08 Sep 2013 13:00:00 -0400","away":{"id":"15","abbr":"mia","slug":"miami-dolphins","name":"Miami","nick":"Dolphins"},"home":{"id":"5","abbr":"cle","slug":"cleveland-browns","n