Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
apply plugin: 'java' | |
apply plugin: 'scala' | |
// For those using Eclipse or IntelliJ IDEA | |
apply plugin: 'eclipse' | |
apply plugin: 'idea' | |
def findPlay20(){ | |
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null } | |
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){ | |
for(playExec in ['play.bat', 'play.sh', 'play']){ |
_.mixin({ | |
// ### _.objMap | |
// _.map for objects, keeps key/value associations | |
objMap: function (input, mapper, context) { | |
return _.reduce(input, function (obj, v, k) { | |
obj[k] = mapper.call(context, v, k, input); | |
return obj; | |
}, {}, context); | |
}, | |
// ### _.objFilter |
import spray.json._ | |
import reactivemongo.bson._ | |
import reactivemongo.bson.handlers.{ BSONReader, BSONWriter, RawBSONWriter } | |
import scala.util.{ Try, Success, Failure } | |
import org.apache.commons.codec.binary.Hex | |
import org.joda.time.format.ISODateTimeFormat | |
import org.joda.time.{ DateTime, DateTimeZone } | |
import java.nio.ByteBuffer | |
import org.jboss.netty.buffer.ChannelBuffers |
<!DOCTYPE html> | |
<!-- By Jan Wrobel. See it working at: | |
http://mixedbit.org/blog/2013/02/10/random_walk_illustrated_with_d3.html | |
--> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Random walk</title> |
package models | |
import play.api.libs.json._ | |
import play.api.libs.json.Json._ | |
import play.api.libs.functional.syntax._ | |
import org.apache.commons.codec.binary.Base64 | |
/** | |
* Created with IntelliJ IDEA. | |
* User: arturas |
#!/bin/bash | |
# | |
# ========================================================================= | |
# Copyright 2014 Rado Buransky, Dominion Marine Media | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
Note: One of the algorithms is incorrect due to a missing operator. Need to update the image. Will have to get on that soon.
These are the original 32 algorithms as used in Yamaha DX7.
The later Yamaha FS1R and Yamaha SY77 may have compatibility with these algorithms, but that's beyond the current scope. The FS1R contains 88 algorithms, while the SY77 contains 45 algorithms.
import * as fs from 'fs'; | |
/** | |
* put your Exported to Alexa DialogFlow project in the `alexa-export` directory | |
* run this script, it will generate an IntentSchemaV2.json that should pass the new | |
* Alexa Skill Kit schema definition validations. | |
* This is based on my project, it is by no means exhaustive, feel free to fork and | |
* add what you need. | |
*/ |