Skip to content

Instantly share code, notes, and snippets.

Bryan Joseph bryanjos

Block or report user

Report or block bryanjos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bryanjos
bryanjos / factory.ex
Created May 7, 2019
StreamData x ExMachina
View factory.ex
defmodule AppTemplate.Factory do
alias AppTemplate.{Repo}
use ExMachina.Ecto, repo: Repo
alias AppTemplate.Generators
def user_factory do
Generators.generate(:user)
end
end
@bryanjos
bryanjos / cloudSettings
Created Apr 14, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-04-14T13:47:08.073Z","extensionVersion":"v3.2.8"}
@bryanjos
bryanjos / burgers.py
Created Apr 12, 2019
Bob's Burgers 2 Vec
View burgers.py
import bs4 as bs
import urllib.request
import re
import os
import nltk
from gensim.models import Word2Vec
import logging
import pprint
pp = pprint.PrettyPrinter(indent=4)
View code_error.ex
defmodule ExFactor.CodeError do
defexception [:message]
end
@bryanjos
bryanjos / cloudSettings
Last active Apr 14, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-04-14T13:45:20.003Z","extensionVersion":"v3.2.8"}
@bryanjos
bryanjos / index.js
Created Jan 20, 2019
Add IPFS folder to a Stellar Account
View index.js
const StellarSDK = require('stellar-sdk')
const IPFS = require('ipfs')
const axios = require('axios')
/**
* Promisifies the initialize process of an IPFS node
*/
function initIPFSNode() {
return new Promise((resolve, reject) => {
const node = new IPFS()
@bryanjos
bryanjos / results.md
Created Sep 9, 2017
Profile ElixirScript Compiler. Compiling URI module
View results.md
$ mix profile.fprof -e "ElixirScript.Compiler.compile(URI)"

                                                                   CNT    ACC (ms)    OWN (ms)
Total                                                          5534687   19554.581   61222.761
:proc_lib.init_p/5                                                 333  194820.867      19.113
:suspend                                                         21496  167338.101       0.000
:proc_lib.init_p_do_apply/3                                        333   93366.534       7.201
:erlang.apply/2                                                    337   87322.239       3.631
Task.Supervised.reply/4                                            332   73806.514       7.144
View client.ex
defmodule ViewService do
defstruct [:locahost, :port]
def init(host, port) do
%ViewService{localhost: localhost, port: port}
end
def render_view(view_service, route, data) do
# ...
View client.ex
defmodule Client do
def render_view(name, data) do
host = Application.get_env(:my_app, :host)
port = Application.get_env(:my_app, :port)
...
end
end
View keybase.md

Keybase proof

I hereby claim:

  • I am bryanjos on github.
  • I am bryanjos (https://keybase.io/bryanjos) on keybase.
  • I have a public key whose fingerprint is F80E F871 562A 7418 6398 F66C 7F13 18D2 0906 5EB0

To claim this, I am signing this object:

You can’t perform that action at this time.