Skip to content

Instantly share code, notes, and snippets.

View emmasteimann's full-sized avatar

Goose Goosington (Emma Steimann) emmasteimann

  • PNF-404
View GitHub Profile
@emmasteimann
emmasteimann / build.sh
Created June 10, 2021 10:50 — forked from johndpope/build.sh
libceres.a universal build
#!/bin/bash
#brew install eigen3
EIGEN_PATH=/opt/local/include/eigen3
# build for device
cmake . -DCMAKE_TOOLCHAIN_FILE=./cmake/iOS.cmake -DEIGEN_INCLUDE_DIR=${EIGEN_PATH} -DIOS_PLATFORM=OS -DEIGENSPARSE=ON
make -j8
# install headers in ..
make install
//
// GradientView.swift
// Aura
//
// Created by Egor Sakhabaev on 23.07.17.
// Copyright © 2017 Egor Sakhabaev. All rights reserved.
//
import UIKit
### Keybase proof
I hereby claim:
* I am emmasteimann on github.
* I am emmadirtygoose (https://keybase.io/emmadirtygoose) on keybase.
* I have a public key ASBbj-_li83X_PCvQucSthqBDSjsk-HhMhcBMVKkDo2-Wgo
To claim this, I am signing this object:
@emmasteimann
emmasteimann / 1_kubernetes_on_macOS.md
Created July 31, 2018 21:43 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@emmasteimann
emmasteimann / compile_ffmpeg.md
Created July 25, 2018 18:30 — forked from teocci/compile_ffmpeg.md
Compile FFmpeg on Ubuntu 16.04

Compile FFmpeg on Ubuntu

This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].

Note: Copy and paste the whole code box for each step.

Preparation

Keybase proof

I hereby claim:

  • I am emmasteimann on github.
  • I am emmasteimann (https://keybase.io/emmasteimann) on keybase.
  • I have a public key ASB9-e1kaRdF9URvWLrvTTGO1crsB52V7F1bKZlai-OJUgo

To claim this, I am signing this object:

@emmasteimann
emmasteimann / MinHeap.swift
Created September 10, 2016 16:16
Swift MinHeap
class MinHeap {
var harr:[Int] = Array<Int>()
init() {
}
func getMin() -> Int {
return harr[0]
}
@emmasteimann
emmasteimann / Model.cpp
Created August 31, 2016 11:38 — forked from emkooz/Model.cpp
Assimp loader
#include "Model.hpp"
bool core::ModelLoader::loadModel(const char* fp, Model* m)
{
core::log("Loading " + (std::string)fp, core::green);
Assimp::Importer importer; // used to import the model
const aiScene* scene = importer.ReadFile(fp,
aiProcess_Triangulate |
@emmasteimann
emmasteimann / delegate.m
Last active February 1, 2016 06:29
UICollectionView and NSFetchedController Delegate Snippet
- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller {
_sectionChanges = [[NSMutableArray alloc] init];
_itemChanges = [[NSMutableArray alloc] init];
}
- (void)controller:(NSFetchedResultsController *)controller
didChangeSection:(id <NSFetchedResultsSectionInfo>)sectionInfo
atIndex:(NSUInteger)sectionIndex
forChangeType:(NSFetchedResultsChangeType)type {
NSMutableDictionary *change = [[NSMutableDictionary alloc] init];
@emmasteimann
emmasteimann / MergeSort.h
Created January 19, 2016 05:41
Objective-C Merge Sort
@interface MergeSort : NSObject
+ (NSArray *)mergeSort:(NSArray *)mergeList;
@end
@implementation MergeSort
+ (NSArray *)mergeSort:(NSArray *)mergeList {
if([mergeList count] <= 1) {
return mergeList;
}
int midIndex = [mergeList count] / 2;