I hereby claim:
- I am cfr on github.
- I am cfr (https://keybase.io/cfr) on keybase.
- I have a public key whose fingerprint is 5373 805B 626B E356 E6AD D788 B678 EC84 92B3 C513
To claim this, I am signing this object:
use std::hashmap::HashMap; | |
fn main() { | |
// create a hashmap | |
let mut hm = HashMap::new(); | |
hm.insert(~"foo", 10); | |
hm.insert(~"bar", 23); | |
hm.insert(~"baz", 99); | |
hm.insert(~"meh", 2); | |
hm.insert(~"muh", -13); |
// Updated to Swift 1.2 and CocoaLumberjack 2.0.0-rc by Stan Serebryakov on 2015-02-16 | |
import Foundation | |
extension DDLog { | |
private struct State { | |
static var logLevel: DDLogLevel = .Error | |
static var logAsync: Bool = true | |
} |
. |
// | |
// Created by Stan Serebryakov on 03/02/15. | |
// | |
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? |
// | |
// AppDelegate.swift | |
// emailRegexTest | |
// | |
// Created by <#Stan Serebryakov#> on 20/02/15. | |
// | |
import UIKit | |
@UIApplicationMain |
// Content source: https://medium.com/@oleavr/diy-kernel-panic-os-x-and-ios-in-10-loc-c250d9649159 | |
// HN thread: https://news.ycombinator.com/item?id=9085536 | |
#include <unistd.h> | |
#include <mach/mach.h> | |
#include <mach-o/dyld.h> | |
extern kern_return_t mach_vm_protect(vm_map_t, mach_vm_address_t, mach_vm_size_t, | |
boolean_t, vm_prot_t); |
// | |
// MyViewController.swift | |
// TypedTableViewControllers | |
// | |
// Created Chris Eidhof on 23/03/15. | |
// Edited by Stan Serebryakov on 25/03/15. | |
// | |
func undefined() { fatalError("undefined") } |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
lurl=$(pbpaste) | |
login="" | |
key="" | |
regex='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]' | |
if [[ $lurl =~ $regex ]] | |
then | |
echo $lurl | |
else |