Skip to content

Instantly share code, notes, and snippets.

@BriceShatzer
BriceShatzer / index.js
Last active November 26, 2018 20:13
Team Lunch - Chess ELO
const EloCalc = require('elo-calculator');
const elo = new EloCalc({});
// let names = [
// 'Brice Shatzer',
// 'Bryce Dorn',
// 'Danny Cheng',
// 'Jamie Levinson',
// 'Joe Duran',
// 'Mike Parent',
@BriceShatzer
BriceShatzer / index.js
Created November 20, 2018 20:33
NotedDistantProtocol created by BriceShatzer - https://repl.it/@BriceShatzer/NotedDistantProtocol
const EloCalc = require('elo-calculator');
const elo = new EloCalc({});
// let names = [
// 'Brice Shatzer',
// 'Bryce Dorn',
// 'Danny Cheng',
// 'Jamie Levinson',
// 'Joe Duran',
// 'Mike Parent',
// @flow
import React from 'react';
import styled from 'styled-components';
import { EnsureDefaultTheme } from '../../theme';
import PopularPostOverlay, { Overlay } from '../popular-posts/popular-post-overlay';
import ProgressiveImage from '../../progressive-image';
import type SidebarPost from 'kinja-magma/models/SidebarPost';
import Video from '../../elements/video';
var amazon_assoc_ir_f_call_associates_ads = function(d) {
var b = "", c, a;
if (typeof JSON !== "undefined") {
a = JSON.stringify(d);
} else {
if (typeof amzn_assoc_utils !== "undefined") {
a = amzn_assoc_utils.stringify(d);
} else {
return;
}
2 Abrade
2 Aether Hub
2 Chandra, Torch of Defiance
2 Field of Ruin
1 Fling
7 Forest
2 Ghalta, Primal Hunger
2 Hashep Oasis
3 Heart of Kiran
2 Heroic Intervention
//...
import com.kinja.mantle.model.BlogSalesMetadata
//...
@template("tiger.section.head.standard")
final case class Standard(
//...
blogSalesObj: Option[BlogSalesMetadata])(implicit request: RequestPlus[_]): Standard = {
object Standard {
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<script>
console.log('hello')
</script>
</body>
@BriceShatzer
BriceShatzer / facebook-contact-info-summary.rb
Created March 23, 2018 18:16 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
# in whatever the working directory of the program is when executed.
#
{
"id": 1820116214,
"authorIds": ["5876237249237788313"],
"authors": [{
"id": "5876237249237788313",
"screenName": "bshatzer",
"displayName": "Brice's Display Name",
"defaultBlogId": 1636458960,
"defaultBlog": null,
"avatar": {
fetch(url, fetchOptions)
.then(function(fetchResponse){
if(fetchResponse.ok){
return fetchResponse.json();
} else {
console.log(url + " failed");
displaySearchErrorMessage(fetchResponse.statusText);
}
})