buildscript {
repositories {
jcenter()
maven { url "http://oss.jfrog.org/oss-snapshot-local" }
maven { url "http://clinker.netty.io/nexus/content/repositories/snapshots" }
}
dependencies {
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
javascript:(function() { | |
var el = document.createElement('pre'), | |
b = document.getElementsByTagName('body')[0], | |
otherjQuery = false, | |
msg = '', | |
libs = [ | |
function loadjQuery() { | |
if (typeof jQuery != 'undefined') { | |
showMsg('This page already using jQuery v' + jQuery.fn.jquery); | |
} else { |
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
############################################################################### | |
# Helpful npm commands and code snippets | |
############################################################################### | |
# list top level packages w/o dependencies | |
npm list --depth=0 | sort | |
npm list --depth=0 | sort -g | |
# list top level packages that are outdated w/o dependencies | |
npm outdated --depth=0 | sort |
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
@GrabResolver(name='netty', root='http://clinker.netty.io/nexus/content/repositories/snapshots') | |
@Grab('io.ratpack:ratpack-groovy:0.9.13-SNAPSHOT') | |
import ratpack.handling.Handler | |
import ratpack.server.* | |
RatpackServer.of { spec -> spec | |
.config(ServerConfig.noBaseDir()) | |
.handler { | |
{ ctx -> ctx.render "Hello World!" } as Handler | |
} |
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/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="nodejs" |