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
// DEVELOPMENT | |
module.exports = exports = { | |
"db": { | |
"connection1": { | |
"driver": "mongodb", | |
"url": "mongodb://localhost:27017/database_dev" | |
}, | |
"connection2": { | |
"driver": "redis", | |
"url": "redis://localhost" |
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 org.apache.cordova.facebook; | |
import java.io.UnsupportedEncodingException; | |
import java.net.URLDecoder; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Date; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.List; |
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
/** | |
* Markup | |
* <md-icon icon-fill="red" icon="'/img/icons/test.svg'" style="width: 32px; height: 32px;"></md-icon> | |
*/ | |
angular.module('material.components.icon.extra', [ | |
'ngMaterial' | |
]) | |
.directive('iconFill', function () { |
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 config = require('../lib/config'); | |
module.exports = function (hoodie) { | |
var dbname = config.dbname; | |
var oauth_cofig = hoodie.config.get('oauthio_config'); | |
var pluginDb = hoodie.database(dbname); | |
var oauthio = new OauthIo(hoodie, pluginDb); | |
var routes = { |
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 | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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 appName = require('./package.json').name | |
|| require('../../package.json').name; | |
var ports = require('ports'); | |
var port = ports.getPort(appName + '-hoodie-plugin-social'); | |
module.exports = { | |
// 'server.pack.post': function (pack) { | |
// console.log('hook: server.pack.pre called'); | |
// }, |
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/bash | |
docker-machine start default 1> /dev/null | |
eval "$(docker-machine env default)" | |
RUNNING=$(docker inspect --format="{{ .State.Running }}" redis 2> /dev/null) | |
if [ $? = 1 ]; then | |
echo "Container redis doesn\'t exists" | |
docker run -d -p 6379:6379 -v `pwd`/data/redis:/data --name redis redis | |
fi |
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
/** | |
* aJson | |
* http://interactive-matter.eu/how-to/ajson-arduino-json-library/ | |
*/ | |
#include <aJSON.h> | |
#include <Time.h> | |
#include <TimeAlarms.h> | |
void setup() { | |
Serial.begin(9600); |
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
/* | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript" src="jquery-1.7.1.min.js"></script> | |
<style type="text/css"> | |
table { width: 100% } | |
table tr.produto-servico, | |
table tr.produto-servico-detalhe { display: none } | |
</style> |
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
<?php | |
/** | |
* Changelog Markdown | |
* | |
* This is a script to transform GIT LOG into a cute format Changelog.md | |
* | |
* To use, set executable permissions to this file and execute: | |
* $ php changelog.php > CHANGELOG.md | |
* | |
* Copyright (c) 2014 João Pinto Neto |
OlderNewer