Skip to content

Instantly share code, notes, and snippets.

View jordanbyron's full-sized avatar

Jordan Byron jordanbyron

View GitHub Profile
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
collection = undefined
}
@jordanbyron
jordanbyron / Effect.js
Created August 29, 2016 18:11 — forked from brentvatne/Effect.js
redux-saga alternative with async/await?
/**
* @providesModule Effects
* @flow
*/
import { Linking } from 'react-native';
import AppDataApi from 'AppDataApi';
import Actions from 'Actions';
import ActionTypes from 'ActionTypes';

Keybase proof

I hereby claim:

  • I am jordanbyron on github.
  • I am jordanbyron (https://keybase.io/jordanbyron) on keybase.
  • I have a public key ASBndbFYTgsqjlb6qcgJDc1XNPPqvCEDYL_Q20v5d57rMAo

To claim this, I am signing this object:

@jordanbyron
jordanbyron / EventSource.m
Created June 10, 2015 15:46
Server-Sent Events for React Native
#import "RCTBridge.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "EventSource/EventSource.h"
#import "EventSourceClient.h"
@implementation EventSourceClient
@synthesize eventSource;
@jordanbyron
jordanbyron / !instructions.md
Last active August 29, 2015 14:04
Installing Ruby 2.1.2 w/ OpenSSL 1.0.1h
  1. Download & extract openssl-1.0.1h
cd ~/src
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar -xzvf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
  1. Configure OpenSSL
@jordanbyron
jordanbyron / whoisstraka.md
Last active January 2, 2016 11:59
Notes for the ARG at whoisstraka.com

whoisstraka.com

Possible ARG based on the book [S.][s-book] by Dorst / Abrams. The following are my initial notes based on the site and its contents.

HTML Comments

Please direct all correspondence to whoisstraka@gmail.com

using secure communications protocols and encryption

@jordanbyron
jordanbyron / application.html.haml
Last active December 29, 2015 09:39
Targeting specific controllers and actions in your assets while still leveraging the full benefits of the asset pipeline
!!! 5
%html{:lang => 'en'}
%head
%title My Awesome Rails App
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'
= csrf_meta_tag
%body{class: "#{controller.controller_name}-#{controller.action_name}"}
@jordanbyron
jordanbyron / a.rb
Last active December 20, 2015 19:59 — forked from tvladeck/a.rb
tooltips.each do |method, text|
define_method(method) { tooltip text['display'], text['tip'] }
end
@jordanbyron
jordanbyron / a.rb
Last active December 20, 2015 12:58 — forked from tvladeck/a.rb
file_name = File.basename(@account.logo.url)
tmp_file = Rails.root.join('tmp', file_name).to_s
File.open(tmp_file, "wb") do |f|
f.write open(@account.logo.url).read
end
@jordanbyron
jordanbyron / a.rb
Created August 1, 2013 20:01 — forked from tvladeck/a.rb
filepath = "#{Rails.root.join('tmp')}/new"
File.open(filepath, "wb") do |f|
f.write open(@account.logo.url).read
end