Skip to content

Instantly share code, notes, and snippets.

View eugene-sy's full-sized avatar
:octocat:

Eugene Sypachev eugene-sy

:octocat:
View GitHub Profile
@eugene-sy
eugene-sy / build.gradle
Created December 20, 2018 13:29
Gradle - Scapegoat integration
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* user guide available at https://docs.gradle.org/5.0/userguide/scala_plugin.html
*/
plugins {
// Apply the scala plugin to add support for Scala
@eugene-sy
eugene-sy / Build.scala
Created September 4, 2014 07:17
sbt-grunt integration for Play Framework apps
import play.PlayRunHook
import sbt._
import Keys._
import play.Play.autoImport._
import play.PlayImport.PlayKeys.playRunHooks
import java.net.InetSocketAddress
object ApplicationBuild extends Build {
import Grunt.GruntTasks
@eugene-sy
eugene-sy / snakeToCammel.coffee
Created May 26, 2014 08:13
Convert string with snake_case to UpperCamelCase and lowerCamelCase
snakeToCamel: (s) ->
s.replace(/(_\w)/g, (m) -> return m[1].toUpperCase() )
snakeToUpperCamel: (s) ->
s.charAt(0).toUpperCase() + s.slice(1).replace(/(_\w)/g, (m) -> return m[1].toUpperCase() )