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
let | |
fontOverlay = import ./font-overlays.nix; | |
pkgsOverlay = import ./pkgs-overlay.nix; | |
user = "anhduy"; | |
in | |
{ config, pkgs, ... }: | |
{ | |
imports = [ <home-manager/nix-darwin> ]; |
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
# Modified from https://github.com/alyssais configuration. | |
# | |
# The following configuration heavily leverages modal keymaps to minimize the | |
# pollution of global keybindings. In addition, the modal keymaps facilitate | |
# the consistent use of the same keybindings across different modes. For | |
# example, this configuration uses 'h', 'l', 'j', and 'k' to represent west, | |
# east, south, and north when: changing focus, warping windows, resizing | |
# windows, swapping windows, and moving floating windows. Those four keys are | |
# mapped differently depending on the current mode to provide a consistent user | |
# experience. |
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
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library", "scala_binary") | |
scala_library( | |
name = "sjsir", | |
srcs = ["Test.scala"], | |
deps = ["@scalajs//:library"], | |
data = ["@scalajs//:compiler"], | |
scalacopts = ["-Xplugin:external/scalajs/lib/scalajs-compiler_2.11.11-0.6.19.jar"], | |
#scalacopts = ["-Xplugin:$(location @scalajs//:compiler)"], ??? location doesn't seems to be working | |
) |
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
// | |
// STSCoverImageViewController.m | |
// Stasis | |
// | |
// Created by Cory D. Wiles on 6/5/14. | |
// Copyright (c) 2014 Macspots. All rights reserved. | |
// | |
#import "STSCoverImageViewController.h" | |
#import "Profile.h" |
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
package wrm | |
import org.objectweb.asm.MethodVisitor | |
import org.objectweb.asm.Label | |
import org.objectweb.asm.Opcodes | |
import org.objectweb.asm.FieldVisitor | |
import org.objectweb.asm.AnnotationVisitor | |
import org.objectweb.asm.ClassWriter | |
object invokeHelper1 { | |
def apply(method: String) {} |
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
/** | |
* Part Zero : 10:15 Saturday Night | |
* | |
* (In which we will see how to let the type system help you handle failure)... | |
* | |
* First let's define a domain. (All the following requires scala 2.9.x and scalaz 6.0) */ | |
import scalaz._ | |
import Scalaz._ | |
object Sobriety extends Enumeration { |
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
.DS_Store | |
*.log | |
tmp/ |
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
object IntepreterFix { | |
import scala.tools.nsc._ | |
import Interpreter._ | |
def break(args: DebugParam[_]*): Unit = { | |
val intLoop = new InterpreterLoop | |
intLoop.settings = { | |
val s = new Settings(Console.println) | |
// need to pass this explicitly to the settings for Scalac. | |
// See: http://old.nabble.com/-scala--recent-changes-in-2.8-nightly-classpath-management-td26233977.html |