Skip to content

Instantly share code, notes, and snippets.

View kharmabum's full-sized avatar
💭
🧀

Juan-Carlos Foust kharmabum

💭
🧀
View GitHub Profile

Declaring models

class Dog: Object {

  dynamic var id = ""

  dynamic var name = ""

 dynamic var tempVariable = ""
@kharmabum
kharmabum / data-science-resources.md
Last active May 19, 2023 10:30
Data Science resources

Data Science Resources

Industry

  • [O'Reilly: 2015 Data Science Salary Survey]
  • [ASA Statement on the Role of Statistics in Data Science]
  • [Data science is different now]
  • [Does my Startup Data Team Need a Data Engineer?]
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# See https://stackoverflow.com/a/40301488
import functools
import inspect
import warnings
string_types = (type(b''), type(u''))
@kharmabum
kharmabum / ocmock-cheatsheet.m
Last active October 8, 2022 07:55
OCMock cheatsheet
/*----------------------------------------------------*/
#pragma mark - XCTAsserts
/*----------------------------------------------------*/
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);
@kharmabum
kharmabum / bluetooth-audio.m
Last active December 11, 2021 04:11
Bluetooth audio session set up
// App delegate
#import <AVFoundation/AVFoundation.h>// place in .h
// applicationDidFinishLaunchingWithOptions
// [self prepareAudioSession];
- (BOOL)prepareAudioSession {
// deactivate session

First figure out 1 rep max for each of the ‘big lifts’ (squat, bench, deadlift). Spend a whole gym session for each lift. Your "working weight" for each of the following progressions will be ~80% of that.

  • Train ~three days a week (A, B, and C days)
  • Usually start with ~6 min warm up. I like to do 500 m on the row machine.
  • Day A: Squat, accessory leg (quads, calves), accessory arms (biceps, triceps)
  • Day B: Bench, acessory chest, acessory back
  • Day C: Deadlift, acessory rear/upper lower body (hamstrings, glutes), acessory shoulders
  • If you got gas left in the tank end the day with an ab workout (50-100 of something)
  • Acessory workouts are ~4 sets of usually a machine or dumbbell exercise at whatever weight you can do 8-12 repetitions per set. I try to do at least 1-2 different exercises per day for each acessory group.
@kharmabum
kharmabum / Aura-Demo.md
Last active June 26, 2019 17:36
Getting Started

AURA DEMO

AURA makes it easy to add presence-enabled features to your iOS 8 application. It takes about 10 lines of code to detect encounters between your users in a highly energy efficient and secure manner.

Getting Started

In your target application's XCode project

  • Add Aura.framework
  • Add CoreBluetooth.framework
@kharmabum
kharmabum / sf.md
Last active June 26, 2019 17:33
Welcome to SF

Abbreviations

  • Downtown = ~north of Market St
  • Richmond = ~north of Golden Gate Park
  • Mission = south of Market St to the West
  • SOMA - south of Market St to the East.

Food

@kharmabum
kharmabum / loop-loc.md
Last active March 19, 2019 05:37
Loop cloc results

Core.framework

2.5.0 in Core/ on xcode10
› cloc .
     162 text files.
     162 unique files.
       1 file ignored.

github.com/AlDanial/cloc v 1.80  T=0.26 s (610.0 files/s, 91682.3 lines/s)
-------------------------------------------------------------------------------
@kharmabum
kharmabum / data-science-curriculum.md
Last active March 8, 2019 23:47
Curriculum for an abbreviated Data Science "masters"

Data Science Curriculum

Goals

  • Broad not narrow focus (i.e. more than deep learning)
  • Emphasis on fundamentals: theory over technology
  • Present a clear, optimized path: separate essential areas of study from practical resources
  • Assume strong software engineering foundation

Foundations

  • [Concepts of Modern Mathematics] by Ian Stewart