-
Make a native change to begin
-
CircleCI
- Check Native diff
- Trigger native build
- App center API
- POST to backend
-
Backend
- Handle "create build" post
-
Github "notify" initial
This file contains 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
use std::{collections::HashSet, i64, io}; | |
const INPUT: &'static str = include_str!("../input.txt"); | |
fn main() -> io::Result<()> { | |
let mut valid_count_one = 0; | |
let mut valid_count_two = 0; | |
for passport in INPUT.split("\n\n") { | |
if is_valid_one(passport) { | |
valid_count_one += 1; |
This file contains 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
#! /usr/bin/env node | |
//@ts-check | |
/** @returns {string} */ | |
const generateUUID = (function () { | |
'use strict' | |
var a = 0, | |
b = [] | |
return function () { |
This file contains 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
class _Slo { | |
version = "0.2.1"; | |
randomId = () => | |
Math.random().toString(36).substring(2, 15) + | |
Math.random().toString(36).substring(2, 15); | |
who = (name) => name.replace(/\(GM\)/, "").trim(); | |
whisper = (from, to, msg) => sendChat(from, `/w "${this.who(to)}" ${msg}`); |
This file contains 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
/** | |
* SLO_UTILS | |
* Copied from SloUtils.js | |
*/ | |
class _Slo { | |
version = '0.2.1'; | |
randomId = () => | |
Math.random().toString(36).substring(2, 15) + | |
Math.random().toString(36).substring(2, 15); |
This file contains 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
class CommandParser { | |
constructor(trigger) { | |
this.trigger = trigger; | |
this.defaultCmd; | |
this.subCmds = {}; | |
} | |
default(action) { | |
this.defaultCmd = { action }; | |
return this; |
This file contains 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 yarg -d "Interactively choose a script to `yarn run`" | |
if not test -e ./package.json | |
echo "No package.json found in current directory" | |
return 1 | |
end | |
if not type -q yarn; and not type -q npm | |
echo "You must have yarn or npm installed" | |
return 1 | |
end |
Here are some notes from my research with crash reporting tools for React Native. I may be a little biased towards Sentry because it is what I've used in the past. Note: I am ONLY considering services that are major players and used by well-known companies.
Firebase is Google's all-in-one suite of tools including analytics, push notifications, A/B testing, crash reporting, deep linking, etc.
This file contains 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 keep-running | |
while not eval $argv | |
echo "Rerunning..." | |
echo (date) | |
end | |
end |
This file contains 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 | |
in_file=$1 | |
out_file=$2 | |
if [ "$#" -ne 2 ]; then | |
if [ "$#" -ne 1 ]; then | |
echo "You must provide at least one file path as an argument." | |
echo "Usage: dedup <input_path> [output_path]" | |
echo "If output_path is ommitted, input file will be overwritten with output." | |
exit 1 |
NewerOlder