Skip to content

Instantly share code, notes, and snippets.

View haldun's full-sized avatar

Haldun Bayhantopcu haldun

  • Berlin, Germany
View GitHub Profile
* {
font-family: -apple-system, Helvetica, Arial, sans-serif !important;
}
body {
background-color:#ffffff !important;
font-size: 13px;
}
#aside {
display:none !important;
}
@haldun
haldun / springer-free-maths-books.md
Created December 29, 2015 13:47 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
protocol TimedTapGestureRecognizerDelegate: class {
func delayInSecondsForTimedTapGestureRecognizer(recognizer: TimedTapGestureRecognizer) -> Double
}
final class TimedTapGestureRecognizer: UITapGestureRecognizer {
weak var timedTapGestureRecognizerDelegate: TimedTapGestureRecognizerDelegate?
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent) {
super.touchesBegan(touches, withEvent: event)
xattr -d com.apple.quarantine Xcode.app
class CancelableTimer: NSObject {
private var queue = dispatch_queue_create("timer", nil)
private var timer: dispatch_source_t!
private var firstTime = true
private var once: Bool
private var handler: () -> ()
init(once: Bool, handler: () -> ()) {
self.once = once
self.handler = handler
@haldun
haldun / gist:6f8669aeca8b7faafaf0
Created October 30, 2015 22:00
installing slime mac os x
brew install sbcl
curl -O https://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp
* (quicklisp-quickstart:install)
* (ql:add-to-init-file)
* (ql:quickload "quicklisp-slime-helper")
.emacs file
(load (expand-file-name "~/quicklisp/slime-helper.el"))
protocol Placeable {}
enum LayoutElement {
case ContainerElement(Container)
case Item(Placeable)
}
struct Container {
let items: [LayoutElement]
}
import React from 'react';
import classNames from 'classnames';
export default class ListField extends React.Component {
render() {
const classes = classNames({
'list-field': true
});
return (
<div className={classes}>
@haldun
haldun / SegueHandlerType.swift
Created September 23, 2015 07:20
SegueHandlerType
//
// SegueHandlerType.swift
//
import UIKit
protocol SegueHandlerType {
typealias SegueIdentifier: RawRepresentable
}
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &