This file contains 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
protocol Thing { | |
typealias argType | |
func doit(val:argType) -> argType | |
} | |
class IntThing : Thing { | |
func doit(val: Int) -> Int { | |
return val + 1 | |
} | |
} |
This file contains 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/guile -s | |
!# | |
;solution to Drive Ya Nuts http://www.samstoybox.com/toys/DriveYaNuts.html | |
(use-modules (ice-9 format)) | |
(define nut (lambda (numbers) | |
(define center -1) | |
(define position 0) | |
(define get-numbers (lambda () numbers)) |
This file contains 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
0x2E3Df650Bb8B6c83D17932c90f62b5394A9a6948 |
This file contains 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
0x8634187E1528eBdc652a4eCAABBD3a40fdc12F61 |
This file contains 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
0x4BD8b52Ca2908b46210e26d55fdC5e4E24197FD0 |
This file contains 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
package lib | |
import org.scalatra._ | |
import org.scalatra.util.RicherString._ | |
import javax.servlet.http.{HttpServletResponse, HttpServletRequest} | |
import org.scalatra.auth.{ScentrySupport, ScentryStrategy} | |
import net.iharder.Base64 | |
import java.util.Locale | |
import io.Codec |
This file contains 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
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
if config.name == 'Debug' | |
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['$(inherited)', '-D DEBUG'] | |
end | |
end | |
end | |
end |
This file contains 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 bash | |
# Build open source Swift in a specified directory after cloning the appropriate Github repos. | |
# Select an alternative Github account (such as hpux735 for William Dillon's forks) to clone swift, swift-llvm, swift-lldb, and swift-corelibs-foundation repos from. | |
ALTREPO="apple" | |
# Interval for collecting vmstat, df, and CPU temperature data | |
STATINTERVAL=300 |
This file contains 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
#!/bin/zsh | |
source "$HOME/.rvm/scripts/rvm" | |
lolcommits --capture |
This file contains 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
1 "============================================================================ | |
2 "File: scala.vim | |
3 "Description: Syntax checking plugin for syntastic.vim | |
4 "Maintainer: Rickey Visinski <rickeyvisinski at gmail dot com> | |
5 "License: This program is free software. It comes without any warranty, | |
6 " to the extent permitted by applicable law. You can redistribute | |
7 " it and/or modify it under the terms of the Do What The Fuck You | |
8 " Want To Public License, Version 2, as published by Sam Hocevar. | |
9 " See http://sam.zoy.org/wtfpl/COPYING for more details. | |
10 " |
NewerOlder