Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
echo " Copying libsndfile"
cp /app/vendor/include/sndfile.h /usr/share/R/include
cp /app/vendor/include/sndfile.hh /usr/share/R/include
cp /app/vendor/lib/libsndfile.a /usr/lib/R/lib
cp /app/vendor/lib/libsndfile.la /usr/lib/R/lib
cp /app/vendor/lib/libsndfile.so /usr/lib/R/lib
cp /app/vendor/lib/libsndfile.so.1 /usr/lib/R/lib
cp /app/vendor/lib/libsndfile.so.1.0.28 /usr/lib/R/lib
cp /app/vendor/lib/libsndfile.so.1 /usr/lib
cp /app/vendor/lib/libsndfile.so.1 /usr/share
@primaryobjects
primaryobjects / facebook-ml.md
Last active January 21, 2018 00:29
Facebook Machine Learning NYC

Local

Places Data

The Places Data team goals are to connect people to places they care about while building a global location database that is accurate and useful. Build a clean, complete, and accurate places graph to increase visit detection and real world outcomes, and to power consumer products.

Technologies: Clustering, Anominaly Detection, Embedding Methods, Classification Methods, NLP, Heterogeneous Graph Propagation algorithms, entity resolution.

@primaryobjects
primaryobjects / graph.png
Last active January 17, 2018 00:00
graphplan notes
graph.png
#
# [2018-01-08] Challenge #346 [Easy] Cryptarithmetic Solver
# https://www.reddit.com/r/dailyprogrammer/comments/7p5p2o/20180108_challenge_346_easy_cryptarithmetic_solver/
#
# Cryptarithms are a kind of mathematical puzzle.
# Each puzzle consists of a basic equation of arithmetic (involving addition, subtraction, division, etc.) with words, where each letter represents a different digit.
# The goal of the puzzle is to find the correct number substitution for each letter in order to make a valid equation.
#
# by Kory Becker
# http://primaryobjects.com
@primaryobjects
primaryobjects / bash.md
Last active February 1, 2018 19:34
Customize the Prompt for Linux on Windows 10
@primaryobjects
primaryobjects / IDLE.tmTheme
Last active January 5, 2018 02:29
Light Color Schemes for Sublime Text 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>author</key>
<string>Domenico Carbotta</string>
@primaryobjects
primaryobjects / VTI.R
Last active January 3, 2018 20:01
A basic example of forecasting stock market prices based on historical performance in R.
#
# A basic example of forecasting stock market prices based on historical performance.
# As always, historical prices are not representative of future returns.
#
library(ggplot2)
library(forecast)
data <- read.csv('VTI.csv', header=T)
data$Date <- as.Date(data$Date, '%Y-%m-%d')
@primaryobjects
primaryobjects / compress.js
Created January 2, 2018 02:41
Compress a string aaabbc as a3b2c by the number of letter occurrences. http://jsbin.com/jiqemodiyo/edit?js,output
var compress = function(s) {
let result = '';
if (s.length) {
let last = s[0];
let count = 1;
for (let i=1; i<s.length; i++) {
const ch = s[i];
@primaryobjects
primaryobjects / client.R
Last active December 27, 2017 13:51
[2017-12-15] Challenge #344 [Hard] Write a Web Client. A simple bare-bones HTTP Client written in R using socketConnection. https://www.reddit.com/r/dailyprogrammer/comments/7jzy8k/20171215_challenge_344_hard_write_a_web_client/
#
# [2017-12-15] Challenge #344 [Hard] Write a Web Client
# https://www.reddit.com/r/dailyprogrammer/comments/7jzy8k/20171215_challenge_344_hard_write_a_web_client/
#
# Given an HTTP URL (no need to support TLS or HTTPS), fetch the content using a GET request. Display the content on the console (a'la curl). Exit.
#
# by Kory Becker
# http://primaryobjects.com
#
httpGet <- function(url) {
#
# [2017-12-11] Challenge #344 [Easy] Baum-Sweet Sequence
# https://www.reddit.com/r/dailyprogrammer/comments/7j33iv/20171211_challenge_344_easy_baumsweet_sequence/
#
# In mathematics, the Baum–Sweet sequence is an infinite automatic sequence of 0s and 1s defined by the rule:
#
# b_n = 1 if the binary representation of n contains no block of consecutive 0s of odd length;
# b_n = 0 otherwise; for n >= 0.
#
# For example, b_4 = 1 because the binary representation of 4 is 100, which only contains one block of consecutive 0s of length 2;