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
| Process grailsTestAppProcess | |
| test.doFirst { | |
| // Using the Grails wrapper to start the Grails application in the 'test' environment so the remote control | |
| // plugin is enabled and my remote util bean is injected from resources.groovy | |
| println "Starting grails app" | |
| String grailsRunAppCommand | |
| if (Os.isFamily(Os.FAMILY_WINDOWS)) { |
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
| #--------------------------------------------------------------------- | |
| # | |
| # Parse the response from Sonatype Nexus in order to determine the | |
| # correct URI for the most recent snapshot of an artifact. | |
| # | |
| # Usage: | |
| # ruby get_latest_snapshot.rb \ | |
| # -n http://localhost:8080/nexus \ | |
| # -g uk.co.scattercode \ | |
| # -a my-artifact \ |
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
| #!/bin/bash | |
| function jsonval { | |
| temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
| echo ${temp##*|} | |
| } | |
| json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
| prop='profile_image_url' | |
| picurl=`jsonval` |
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
| var application_root = __dirname, | |
| express = require("express"), | |
| path = require("path"), | |
| mongoose = require('mongoose'); | |
| var app = express.createServer(); | |
| // database | |
| mongoose.connect('mongodb://localhost/ecomm_database'); |
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
| // Public domain, really. | |
| jQuery.expr[':'].focus = function( elem ) { | |
| return elem === document.activeElement && ( elem.type || elem.href ); | |
| }; |
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
| /** | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you 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 |
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
| import org.apache.maven.shared.dependency.analyzer.ClassAnalyzer | |
| import org.apache.maven.shared.dependency.analyzer.DefaultClassAnalyzer | |
| import org.apache.maven.shared.dependency.analyzer.DependencyAnalyzer | |
| import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis | |
| import org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer | |
| import org.gradle.api.Project | |
| import org.gradle.api.artifacts.ConfigurationContainer | |
| import org.gradle.api.artifacts.ResolvedArtifact | |
| import org.gradle.api.artifacts.ResolvedDependency |
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
| /*jshint strict:false*/ | |
| /*global CasperError console phantom require*/ | |
| /** | |
| * grab links and push them into xml | |
| */ | |
| var casper = require("casper").create({ | |
| }); |
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
| {_} = require 'underscore' | |
| child_process = require 'child_process' | |
| async = require 'async' | |
| healthCheckInterval = 60 * 1000 | |
| bounceInterval = 60 * 1000 | |
| bounceWait = bounceInterval + 30 * 1000 | |
| delayTimeout = (ms, func) -> setTimeout func, ms | |
| class MonitoredChild |