README is empty
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
#!/usr/bin/env bash | |
# basic ruby | |
apt-get update | |
apt-get install aptitude libxslt-dev libxml2-dev ruby ruby1.9.1-dev libssl-dev build-essential -y | |
# config ruby gems to https | |
gem sources -r http://rubygems.org | |
gem sources -r http://rubygems.org/ | |
gem sources -a https://rubygems.org |
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
#!/usr/bin/env ruby | |
require 'uri' | |
require 'json' | |
require 'net/http' | |
def http_get(uri) | |
JSON.parse(Net::HTTP.get(URI(uri))) | |
end |
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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Contador de Downloads de recurso do GBIF</title> | |
</head> | |
<body> | |
<canvas id="myChart" width="700" height="300"></canvas> |
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
dofile("utils/http.lua") | |
dofile("utils/json.lua") | |
search = function(query) | |
local url = "http://en.wikipedia.org/w/api.php?action=query&list=search&format=json&srsearch=".. http.encode(query); | |
local headers = { | |
{ | |
"User-Agent", | |
"AnySearch" | |
} |
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 | |
$mail = "email@gmail.com" ; | |
$header = "From: email@gmail.com\n" ; | |
$msg = "Mensagem" ; | |
$subject = "Assunto" ; | |
mail($mail,$subject,$msg,$header); |
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 twitter-search | |
(:require [clojure.contrib.json.read :as json]) | |
(:require [clojure.contrib.http.agent :as http ]) | |
(:import (java.net URL URLEncoder)) | |
) | |
(defn search [word last-id] | |
(let [term (URLEncoder/encode word "UTF-8") | |
result (http/string (http/http-agent (str | |
"http://search.twitter.com/search.json?q=" |
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 couchdb | |
(:use clojure.data.json) | |
(:refer-clojure :exclude [get key])) | |
(defn server | |
"Wraps a server" | |
[host port] {:server (str "http://" host ":" port)}) | |
(defn db | |
"Wraps a database on a server" |
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 | |
# this script tries to turn your etcd into env vars | |
[[ ! $EHOST ]] && EHOST="$(hostname -I | awk '{ print $1 }')" | |
[[ ! $EPORT ]] && EPORT=4001 | |
[[ ! $ETCD ]] && ETCD="http://${EHOST}:$EPORT" | |
ETCD_FILE="/tmp/$(date +%s).etcd.json" | |
wget "$ETCD/v2/keys/?recursive=true" -O $ETCD_FILE |
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 | |
namespace cncflora\repository; | |
class Profiles { | |
public $user = null; | |
public $couchdb = null; | |
public $db = null; | |
public function __construct($user=null) { |
OlderNewer