- Differential Dataflow - The code is ugly Rust, but the logic and linked papers are quite interesting.
- Spinning Fast Iterative Dataflows - Flink's execution model. Also, coverage in the Morning Paper.
- Discretized Streams - Spark Streaming's model of operation.
- Google's Dataflow Model - This is now also available as Apache (Incubating) Beam.
- Kafka Streams - Kafka offers "hipster stream processing," and a nice unification between tables and streams.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (CLLocationCoordinate2D)locationFromString:(NSString *)locationString{ | |
| CLLocationCoordinate2D coordinate; | |
| // Extract individual components | |
| NSMutableArray *locationColumns = [NSMutableArray arrayWithArray: | |
| [locationString componentsSeparatedByCharactersInSet: | |
| [NSCharacterSet whitespaceCharacterSet]]]; | |
| // Remove empty objects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| /// An action that will get executed after a certain amount of | |
| /// time, if the object is still alive. If the object gets | |
| /// deinited before the provided time, the action will never | |
| /// get executed. | |
| class DebouncedAction { | |
| private let action: ()-> Void | |
| private var onCancel: (()-> Void)? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import re | |
| import plistlib | |
| from codecs import open | |
| from copy import deepcopy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface SafeSet : NSObject { | |
| NSMutableSet *set; | |
| dispatch_queue_t queue; | |
| } | |
| @end | |
| @implementation SafeSet |
- 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.
- Downtown - http://www.yelp.com/biz/bio-san-francisco
The instructions below apply to older versions of Homebrew which still provide switch capability.
For current Homebrew, you'll likely need to keep Versions around, and build locally. Here's my versions repository https://github.com/rdump/homebrew-versions
MacPorts is now keeping versioned installations available as well, by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Basic benchmarks | |
| # SET key val # 87489.06 | |
| # SETRANGE key2 6 "Redis" # 75757.58 req/s | |
| # INCR key 245 # 70224.72 req/s | |
| # INCRBY key 245 22 # 67114.09 req/s | |
| # EVAL SET key val # 46296.29 req/s | |
| # SETIFHIGHER (set or update key if new value is higher than current) # 41666.67 req/s | |
| # if not exists return OK , if updated return the increment , if not updated return 0 | |
| SCRIPT LOAD "local c = tonumber(redis.call('get', KEYS[1])); if c then if tonumber(ARGV[1]) > c then redis.call('set', KEYS[1], ARGV[1]) return tonumber(ARGV[1]) - c else return 0 end else return redis.call('set', KEYS[1], ARGV[1]) end" |
Prerequisites:
- One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
- A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.
Software components used:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GIF2MP4.swift | |
| // | |
| // Created by PowHu Yang on 2020/4/24. | |
| // Copyright © 2020 PowHu Yang. All rights reserved. | |
| // | |
| /* How to use | |
| let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!) | |
| let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4") |
OlderNewer