Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
ReasonML / Elixir

Jaap Frolich jfrolich

💭
ReasonML / Elixir
View GitHub Profile
View FFPromise.res
type t<'a> = Js.Promise.t<'a>
type error
@bs.new
external make: ((@bs.uncurry ~resolve: (. 'a) => unit, ~reject: (. exn) => unit) => unit) => t<'a> =
"Promise"
@bs.val @bs.scope("Promise") external resolve: 'a => t<'a> = "resolve"
@bs.val @bs.scope("Promise") external reject: exn => t<'a> = "reject"
@bs.val @bs.scope("Promise")
external all: array<t<'a>> => t<array<'a>> = "all"
@jfrolich
jfrolich / Reanimated.res
Created Dec 22, 2020
Reanimated2 Bindings
View Reanimated.res
module Extrapolate = {
type t
@bs.scope(("default", "Extrapolate")) @bs.module("react-native-reanimated")
external extend: t = "EXTEND"
@bs.scope(("default", "Extrapolate")) @bs.module("react-native-reanimated")
external clamp: t = "CLAMP"
@bs.scope(("default", "Extrapolate")) @bs.module("react-native-reanimated")
external identity: t = "IDENTITY"
}
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
call plug#begin("~/.vim/plugged")
Plug 'prettier/vim-prettier'
Plug 'elixir-editors/vim-elixir'
Plug 'slashmili/alchemist.vim'
View d9e28418.chunk.js
(this.webpackJsonp=this.webpackJsonp||[]).push([[0],{1041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var n,o=r(1465),i=(n=o)&&n.__esModule?n:{default:n};e.exports=t.default},1042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,o){for(var i=0,a=e.length;i<a;++i){var s=e[i](t,r,n,o);if(s)return s}},e.exports=t.default},1043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)},e.exports=t.default},1044:function(e,t,r){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;r<o;++r)n(e,t[r]);else n(e,t)},e.exports=t.default},1045:function(e,t,r){"use strict";t.__esModule=!0;var n=r(741),o={},i={},a=["Webkit","Moz","O","ms",""],s=a.length,u=void 0;t.default=function(e,t)
View gist:3108615ddca27318ad7f
{
"metadata": {
"name": "",
"signature": "sha256:7dd98943a42a3b5dadac425cbc531b5432fa5b7a285c1822445d21393b63f47a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View wbw_client.rb
require 'net/http'
require 'nokogiri'
require 'wbw/exceptions'
module Wbw
class Client
attr_accessor :username, :session_id, :logged_in
def initialize params = {}
if params
View wbw_client_test.rb
# Add the libary directory to the LOAD_PATH
# this makes running the test as easy as just running script
PROJECT_ROOT = File.join(File.dirname(__FILE__),'..','..')
$LOAD_PATH.unshift(File.join(PROJECT_ROOT,'lib'))
require 'minitest/autorun'
require 'wbw/client'
require 'vcr'
require 'pry'
View .bash_profile
export PATH=~/bin:$PATH:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
PS1="\n\u:\w \[$EBLACK\]\$(vcprompt)\[$NO_COLOR\] \n→ "
# Colors from http://wiki.archlinux.org/index.php/Color_Bash_Prompt
# misc
NO_COLOR='\e[0m' #disable any colors
# regular colors
BLACK='\e[0;30m'
View .bash_profile
alias zenpage='cd /Users/jfrolich/Dropbox/Dynamicka/Projects/Jan\ Commandeur/Zenpage'
alias projects='cd /Users/jfrolich/Dropbox/Dynamicka/Projects/'
export PATH=/Library/Ruby/Gems/1.8/bin:/usr/local/mysql/bin:~/bin:$PATH:
export NODE_PATH=/usr/local/lib/node:$PATH
if [[ -s /Users/jfrolich/.rvm/scripts/rvm ]] ; then source /Users/jfrolich/.rvm/scripts/rvm ; fi
export S3_KEY=AKIAIHTCDQ5ZF76U22UQ
export S3_SECRET=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
export S3_BUCKET=zenpage-development
View gist:1059264
Soapbox.iconButton = SC.View.extend({
action: "",
tagName: "a",
classNames: ["iconic", "iconbutton"],
classBinding: "action",
click: function(evt) {
alert("mahahah");
}
});