This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Googleplaces | |
open AddressShared | |
module Encode = { | |
let location = (location: location) => | |
Json.Encode.( | |
object_([ | |
("administrative_area_level_1", string(location.administrative_area_level_1)), | |
("country", string(location.country)), | |
("locality", string(location.locality)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type webData('a) = RemoteData.t('a, 'a, string); | |
type language = { | |
name: option(string), | |
count:int | |
} | |
type repo = { | |
id: int, | |
owner: string, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type state = | |
| LOADING | |
| ERROR | |
| LOADED(string) | |
type searchType = | |
| ZIP | |
| LOCATION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Belt ; | |
type state = { | |
| LOADING | |
| ERROR | |
| LOADED(id) ; | |
}; | |
type searchType = | |
| zip ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT=`which git` | |
for d in $(find -name \.mergify.yml); | |
do ( | |
DIR=${d//.mergify.yml} | |
cd "$DIR" && | |
${GIT} add --all . | |
${GIT} commit -m "fix mergify" | |
${GIT} push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git_clean_passwords() { | |
if [ -n "$1" ] | |
then | |
java -jar $HOME/bin/bfg.jar --replace-text passwords.txt $1 | |
else | |
java -jar $HOME/bin/bfg.jar | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Filter do | |
@moduledoc """ | |
this module will filter out results from a list via body or tail recursion | |
""" | |
@doc """ | |
this will filter one result from the list via tail recursion | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Advanced Geolocation store | |
After=network.target | |
Documentation=http://tile38.com/documentation/, man:redis-server(1) | |
[Service] | |
Type=forking | |
ExecStart=/srv/geodb/tile38-server | |
PIDFile=/var/run/tile38/tile38-server.pid | |
TimeoutStopSec=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.config = { | |
// See http://brunch.io/#documentation for docs. | |
files: { | |
javascripts: { | |
joinTo: { | |
"js/landing/vendor.js": /^(bundled\/js\/landing|vendor|deps|node_modules).*/, | |
"js/page/vendor.js": /^(bundled\/js\/page|vendor|deps|node_modules).*/, | |
"js/quote/vendor.js": /^(bundled\/js\/quote|vendor|deps|node_modules).*/, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Brunch automatically concatenates all files in your | |
// watched paths. Those paths can be configured at | |
// config.paths.watched in "brunch-config.js". | |
// | |
// However, those files will only be executed if | |
// explicitly imported. The only exception are files | |
// in vendor, which are never wrapped in imports and | |
// therefore are always executed. | |
// Import dependencies |