const codingDojo = {
Linguagem: JavaScript,
Nivel: ['Iniciante', 'Intermediario'],
Local: 'Senac Alecrim',
Inscricoes: 'www.meetup.com/GDG-Natal'
DataHora: new Date('2016-03-31 19:00'),
Informacoes: '[email protected]'
};
This file contains hidden or 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
| -module(bmp). | |
| -export([generate/0, header/2, i/2, c/1]). | |
| header(FileSz, Offset) -> | |
| << | |
| "BM", | |
| FileSz:32/little, | |
| 0:32, | |
| Offset:32/little |
This file contains hidden or 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
| const five = require('johnny-five'); | |
| const board = new five.Board(); | |
| const Firebase = require('firebase'); | |
| const relays = new Firebase('https://io16natal.firebaseio.com').child('relay'); | |
| board.on('ready', () => { | |
| const lamps = { | |
| '01': new five.Relay(8), | |
| '02': new five.Relay(9), | |
| '03': new five.Relay(10), |
This file contains hidden or 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
| const http = require('http'); | |
| const querystring = require('querystring'); | |
| function DecToBase(Base, Dado){ | |
| var Valor=Dado, NumDig=0, Div, IDiv, Saida="", i; | |
| var Digs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| while(Valor >= 1){ | |
| Valor = Valor / Base; |
This file contains hidden or 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
| const arr = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; | |
| function fillArray(size, initial) { | |
| initial = initial || 0; | |
| return Array.apply(null, Array(size)).map((o,i) => { | |
| return i + initial; | |
| }); |
This file contains hidden or 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 a = [ | |
| {name: "Henri", developer: "front", salary: 1}, | |
| {name: "Jay", developer: "front", salary: 2}, | |
| {name: "Jhon", developer: "back", salary: 3}, | |
| {name: "another guy", developer: "back", salary: 4}, | |
| {name: "Desmond", developer: "back", salary: 5}, | |
| {name: "another guy 3", developer: "full stack", salary: 6}, | |
| {name: "Desmond asfasd", developer: "middle stack", salary: 7} | |
| ]; |
This file contains hidden or 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 java.util.ArrayList; | |
| /* | |
| * Algoritmo que adiciona todas as disciplinas do 2 semestre | |
| * remove as menos importantes e lista o que realmente você | |
| * vai usar em sua vida profissional. | |
| */ | |
| /** |
This file contains hidden or 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 java.util.ArrayList; | |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| /** |
This file contains hidden or 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
| /script UIErrorsFrame:UnregisterEvent("UI_ERROR_MESSAGE"); | |
| /cast Frost Nova | |
| /click [pet] PetActionButton5 | |
| /script UIErrorsFrame:RegisterEvent("UI_ERROR_MESSAGE"); | |
| ------------------ | |
| #showtooltip Frostbolt | |
| /use 13 | |
| /use 14 |
This file contains hidden or 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
| # Global Status | |
| FLUSH STATUS ; | |
| SHOW GLOBAL STATUS ; | |
| # Profilling | |
| SET PROFILING = 1 | |
| SHOW PROFILES; | |
| SHOW PROFILE for QUERY 2; |