Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import codecs
import numpy as np
import MeCab
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans, MiniBatchKMeans
@pixyzehn
pixyzehn / introrx.md
Created November 15, 2015 10:33 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@pixyzehn
pixyzehn / FRP iOS Learning resources.md
Created February 10, 2016 15:46 — forked from JaviLorbada/FRP iOS Learning resources.md
The best FRP iOS resources.

Videos

#!/usr/bin/env xcrun swift -F Carthage/Build/Mac
import Foundation
import Markingbird
protocol Streamable {
var title: String { get }
var body: String { get }
}
@pixyzehn
pixyzehn / Coordinator.swift
Created April 9, 2016 08:07 — forked from AliSoftware/Coordinator.swift
Coordinators & StateMachine - Concept
struct Coordinator {
let window: UIWindow
let navCtrl: UINavigationController?
func start() {
presentWelcomeScreen()
}
private func presentWelcomeScreen() {
let vc = WelcomeScreenViewController() // Instanciate from code, XIB, Storyboard, whatever your jam is
@pixyzehn
pixyzehn / Fresh macOS Setup.md
Created November 27, 2016 11:59 — forked from ashfurrow/Fresh macOS Setup.md
All the stuff I do on a fresh macOS Installation

Apps to install from macOS App Store:

  • Tweetbot
  • CopyClip 2
  • GIF Brewery
  • Slack
  • Deckset
  • Keynote/Pages/Numbers
  • 1Password
  • OmniFocus 2
@pixyzehn
pixyzehn / unwrap.md
Created November 27, 2016 14:27 — forked from erica/unwrap.md

Better Unwrapping

Introduction

This proposal redesigns common unwrapping tasks:

// gem install cocoapods-playgrounds
// pod playgrounds LibYAML
// Update: @floriankugler had a great idea to use UnsafeBufferPointer
// Paste in the following:
import LibYAML
public struct YAMLError: ErrorType {
@pixyzehn
pixyzehn / The Technical Interview Cheat Sheet.md
Created December 31, 2016 11:57 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@pixyzehn
pixyzehn / SampleViewController.swift
Created January 14, 2017 08:55 — forked from JaviSoto/SampleViewController.swift
Init based Storyboard View Controller Instantiation
final class SampleViewController: StoryboardBackedViewController {
// Unfortunately this must be an IUO var, so that we can set the value after super.init
private var member: Foo!
// Proper dependency injection in a storyboard backed VC!
init(foo: Foo) {
super.init(storyboardIdentifier: "SampleViewControllerIdentifier")
// We have to set the members *after* calling super.init, since it changes the instance of `self`.
self.member = foo