Skip to content

Instantly share code, notes, and snippets.

:octocat:
Rust > C++ > Go > TypeScript > C

Samuel Marks SamuelMarks

:octocat:
Rust > C++ > Go > TypeScript > C
Block or report user

Report or block SamuelMarks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tf-log.txt
$ pip install -U pip setuptools
Requirement already up-to-date: pip in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (19.3.1)
Requirement already up-to-date: setuptools in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (41.6.0)
$ pip install -U jupyter
Requirement already up-to-date: jupyter in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (1.0.0)
Requirement already satisfied, skipping upgrade: ipykernel in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (from jupyter) (5.1.2)
Requirement already satisfied, skipping upgrade: jupyter-console in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (from jupyter) (6.0.0)
Requirement already satisfied, skipping upgrade: notebook in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (from jupyter) (6.0.1)
View tflog.txt
sudo: apt-get install -y --no-install-recommends cuda-10-0 libcudnn7=7.6.2.24-1+cuda10.0 libcudnn7-dev=7.6.2.24-1+cuda10.0
out:
out: Reading package lists... 0%
out:
out: Reading package lists... 100%
out:
out: Reading package lists... Done
out:
out:
out: Building dependency tree... 0%
View tflog.txt
This file has been truncated, but you can view the full file.
Executing task 'install_tensorflow0'
run: pip install -U pip setuptools
out: Requirement already up-to-date: pip in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (19.2.3)
out: Requirement already up-to-date: setuptools in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (41.2.0)
out:
run: pip install -U jupyter
out: Requirement already up-to-date: jupyter in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (1.0.0)
out: Requirement already satisfied, skipping upgrade: nbconvert in /opt/venvs/tflow3.6.8/lib/python3.6/site-packages (from jupyter) (5.6.0)
@SamuelMarks
SamuelMarks / python.rb
Last active Aug 4, 2019
python 3.6.8 brew formula
View python.rb
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz"
sha256 "35446241e995773b1bed7d196f4b624dadcadc8429f26282e756b2fb8a351193"
revision 1
bottle do
sha256 "1bc5a2d3f0a8602bf2f46de7c43fcb6dde4f110c0f4518d4e802cb1f733a43de" => :high_sierra
sha256 "131d39120ac6ca2f21bf231de7414c08916cea472bc5219e0bcb49541f77cb9f" => :sierra
@SamuelMarks
SamuelMarks / log.txt
Created Jun 22, 2019
brew install --verbose --debug musl-cross
View log.txt
This file has been truncated, but you can view the full file.
Updating Homebrew...
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/filosottile/homebrew-musl-cross/musl-cross.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnu-sed.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/make.rb
==> Installing musl-cross from filosottile/musl-cross
View keybase.md

Keybase proof

I hereby claim:

  • I am samuelmarks on github.
  • I am samuelmarks (https://keybase.io/samuelmarks) on keybase.
  • I have a public key ASA_NL6SAsbWscw8Zy4_1_MPE1imscMAwBmaqg3uoIj2fgo

To claim this, I am signing this object:

@SamuelMarks
SamuelMarks / egghead_YouTube_downloader.py
Last active Nov 3, 2018
Simple algorithm to download all the egghead.io videos in highest-quality from YouTube.
View egghead_YouTube_downloader.py
"""
Simple algorithm to download all the egghead.io videos in highest-quality from YouTube.
Run from the directory you want the videos to appear. Renames them so that they have the video number + omit the repetitive "Egghead.io - AngularJS -" text.
Installing dependency:
$ pip install git+https://github.com/NFicano/pytube#egg=pytube
"""
from pytube import YouTube #, exceptions as YTD_exceptions
View walk.ts
#!/usr/bin/env node
import * as fs from 'fs';
import * as path from 'path';
const walk = (dir: string, done: (err: NodeJS.ErrnoException, results?: string[]) => void): void => {
let results: string[] = [];
fs.readdir(dir, (err: NodeJS.ErrnoException, files: string[]) => {
if (err) return done(err);
let pending = files.length;
@SamuelMarks
SamuelMarks / scraper.py
Created Oct 5, 2012
Python makes scraping easy!
View scraper.py
from bs4 import BeautifulSoup as bs
import urllib3
def scrape_industries(site='https://angel.co/markets'):
http = urllib3.PoolManager()
r = http.request('GET', site)
if r.status != 200:
return False
@SamuelMarks
SamuelMarks / pip_install_all.bash
Created Jan 23, 2018
[offscale] Install all dependencies via pip
View pip_install_all.bash
#!/usr/bin/env bash
if [ ! -z DIR ]; then DIR=(off*/); fi
VENV="${VENV:-.offenv}"
REQUIREMENTS="${REQUIREMENTS:-'requirements.txt'}";
if [ ! -d "$VENV/bin" ]; then
echo Cannot find "$VENV/bin"
exit 2;
You can’t perform that action at this time.