This is my workspace reference documentation in case I need to install and prepare it again. Is up to you (me) if you want to run this step by step. Use it wiselly. =]
- Desktop
- Projects
- Transfers
- Documents
var http = require('http'); | |
http.createServer(function(request, response) { | |
var proxy = http.createClient(80, request.headers['host']) | |
var proxy_request = proxy.request(request.method, request.url, request.headers); | |
proxy_request.addListener('response', function (proxy_response) { | |
proxy_response.addListener('data', function(chunk) { | |
response.write(chunk, 'binary'); | |
}); | |
proxy_response.addListener('end', function() { |
<script> | |
/* | |
Class através de função construtora calcula o "Teorema de Pitagoras", | |
sendo que também contem uma função incluida para calcular a "area". | |
----------------------------------------------------------------------- | |
Autor: Valdiney França | |
Linguagem: javascript | |
*/ | |
function Teorema_pitagoras(H,b){ |
window.onload = function(){ | |
// Resgatando Menu | |
var menu = document.getElementById('menu'); | |
// Aplica as funções após o click | |
var show_menu = document.getElementById('show_menu').onclick = function(){ | |
// Verifica o estado do menu e aplica o valor relevante a situação | |
if(menu.style.display == 'none'){ | |
ocultaMenu('block'); | |
}else{ |
We're currently working on making it easier to add new field types to KeystoneJS as plugins.
In the meantime, if you'd like to work on your own field type, hopefully this guide will point you in the right direction.
Keystone fields require the following:
{fieldType}.js
file in ./lib/fieldTypes
that controls the field and encapsulates options support, underscore functions, validation and updating{fieldType}.js
file needs to be included by ./lib/fieldTypes/index.js
/////////////////////////////////////////////////////// | |
// | |
// Project: TriggersAnAction_Script | |
// author: Valdiney França | |
// | |
////////////////////////////////////////////////////// | |
/* | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
{ | |
"countries": [ | |
{ | |
"country": "Afghanistan", | |
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"] | |
}, | |
{ | |
"country": "Albania", | |
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"] | |
}, |
# ubuntu 14.01 comes with nginx I guess.For simple testing purposes I use apache2. | |
######################################################## | |
# Assumption | |
# - nginx & apache2 have already been installed on ubuntu 14.04 | |
# Goal |