- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
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
/* | |
Async Task | |
AsyncTask was written to provide a convenient, easy-to-use way to achieve background processing in Android apps, | |
without worrying too much about the low-level details(threads, message loops etc). | |
It provides callback methods that help to schedule tasks and also to easily update the UI whenever required. | |
AsyncTask runs a set of actions in a separate thread, can show progress during its work and show notification | |
when the task is completed. | |
However, there is a limit to the number of jobs that can be scheduled using AsyncTasks. |
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 | |
# | |
# Programa: create.sh | |
# Autor: Vitor Britto | |
# | |
# Descrição: | |
# Este script será responsável pela criação de uma estrutura | |
# para novos projetos, incluindo a integração de tecnologias | |
# utilizadas atualmente nos projetos web |
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 | |
# | |
# General | |
# --------------------------------------------------- | |
# Create a data URI from a file | |
datauri() { | |
local mimeType="" |
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
{ | |
"name": "", | |
"version": "", | |
"private": true, | |
"author": "Vitor Britto <code@vitorbritto.com.br>", | |
"description": "", | |
"bin": {}, | |
"scripts": { | |
"start": "", | |
"test": "" |
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
Show hidden characters
{ | |
"bitwise": true, | |
"eqeqeq": true, | |
"eqnull": true, | |
"immed": true, | |
"newcap": true, | |
"esnext": true, | |
"latedef": true, | |
"noarg": true, | |
"node": true, |
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="pt-br"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>HTML5 e CSS3</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<link rel="author" href="" /> | |
<link rel="index" href="" /> | |
<link rel="home" href="" /> | |
<link rel="up" href="" /> |
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="pt-br"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>HTML5 e CSS3</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<!--[if lt IE 9]> |
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
class AndroidWay extends Activity { | |
TextView name; | |
ImageView thumbnail; | |
LocationManager loc; | |
Drawable icon; | |
String myName; | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); |