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
check host mongodb with address localhost | |
start program = "/usr/bin/sudo /opt/database/mongo/bin/mongod" | |
stop program = "/usr/bin/sudo /usr/bin/pkill -f mongod" | |
if failed port 28017 protocol HTTP | |
request / | |
with timeout 10 seconds | |
then start |
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
with import <nixpkgs> { }; | |
let | |
formality = stdenv.mkDerivation { | |
name = "formality"; | |
src = fetchFromGitHub { | |
owner = "moonad"; | |
repo = "Formality"; | |
rev = "7672090304ec1a5e83a4edb24d02a692620807b6"; |
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
with import <nixpkgs> { }; | |
let | |
tla = stdenv.mkDerivation { | |
name = "tla"; | |
src = fetchFromGitHub { | |
owner = "pmer"; | |
repo = "tla-bin"; | |
rev = "66c09caa79d1427418e703cf07a5ad7edc72bb96"; |
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
var gulp = require('gulp'); | |
gulp.task('sass', sassCompile); | |
gulp.task('assets', assetCopy); | |
gulp.task('scripts', scriptCompile); | |
gulp.task('clean', clean); | |
gulp.task('prepareAndReload', ['prepare'], reloader); | |
gulp.task('prepare', ['default'], cordovaPrepare); | |
gulp.task('dev', ['default'], liveReloadServer); |
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
import request from 'request'; | |
export default async function (hook) { | |
const output = [hook.params.data.hook.changedTimesheetCompleteEntry].map((completeEntry) => { | |
return { | |
date: `${completeEntry.day}/${completeEntry.month}/${completeEntry.year}`, | |
sent: completeEntry.sent, | |
user: completeEntry.user, | |
forwardTo: completeEntry.forwardTo, | |
content: completeEntry.entryPairs.nodes.map((pair) => { |
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
(ns marsrover.core | |
(:require [clojure.string :as s])) | |
(defn add-tuple [fst snd] | |
[(+ (first fst) (first snd)) (+ (second fst) (second snd))]) | |
(defn input->rovers [input] | |
(partition 2 (drop 1 (s/split-lines input)))) | |
(defn next-movement [facing] |
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
(ns reactor.clj.core | |
(:import [reactor.core Reactor Context])) | |
;;create the reactor | |
(def reactor (Reactor. (Context/rootDispatcher))) | |
;;create the selector | |
(def selector (reactor.Fn/$ "print.received")) | |
;;create and implement the consumer | |
(def consumer (proxy [reactor.fn.Consumer][] (accept [event] (println "Received")))) |
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
package br.org.pav.svp.old; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import org.tmatesoft.svn.core.SVNCommitInfo; | |
import org.tmatesoft.svn.core.SVNDepth; | |
import org.tmatesoft.svn.core.SVNErrorCode; |
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
package br.org.pav.svp.old; | |
import java.io.File; | |
import java.io.IOException; | |
import org.tmatesoft.svn.core.SVNException; | |
import org.tmatesoft.svn.core.SVNNodeKind; | |
import org.tmatesoft.svn.core.SVNURL; | |
import org.tmatesoft.svn.core.io.ISVNEditor; | |
import org.tmatesoft.svn.core.io.SVNRepository; |
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
- Doc ready function -o | |
- Functional setting -w | |
- Chainable -w | |
- Classy dom -w | |
- Selector engine -o | |
- Element transformation -w | |
- Event management -o | |
- Intelligent ajax -w | |
- Templating -o |
NewerOlder