// IIFE - Immediately Invoked Function Expression
(function($, window, document) {
// The $ is now locally scoped
// Listen for the jQuery ready event on the document
$(function() {
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
| #include <time.h> | |
| int main() | |
| { | |
| clock_t begin = clock(); | |
| // Something here | |
| clock_t end = clock(); | |
| double time_spent = (double)(end - begin) / CLOCKS_PER_SEC; |
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 express = require('express'); | |
| const app = express(); | |
| const _ = require('lodash'); | |
| const HttpErrors = require('./http-errors'); | |
| const users = [{ | |
| id: 1, | |
| name: 'John Snow' | |
| }, { |
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
| using System; | |
| namespace Delegates | |
| { | |
| public class PriceChangedEventArgs : EventArgs | |
| { | |
| public readonly decimal LastPrice; | |
| public readonly decimal NewPrice; | |
| public PriceChangedEventArgs(decimal lastPrice, decimal newPrice) |
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
| using System; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine(Sum(1, 2, 3, 4, 5)); | |
| Console.WriteLine(SumWithoutParams(new int[] {1, 2, 3, 4, 5})); | |
| } | |
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
| using System; | |
| using System.Collections; | |
| using System.Text.RegularExpressions; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var email = "abnerfcastro@gmail.com"; | |
| if (email.IsValidEmailAddress()) |
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
| CREATE TABLE #SOURCE ( | |
| SOURCE_FIELD VARCHAR(30) NOT NULL | |
| ) | |
| CREATE TABLE #TARGET ( | |
| TARGET_FIELD VARCHAR(30) NOT NULL | |
| ) | |
| INSERT INTO #SOURCE VALUES ('Apple'), ('Strawberry'), ('Orange'), ('Kiwi') | |
| INSERT INTO #TARGET VALUES ('Apple'), ('Orange') |
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
| public enum Nivel | |
| { | |
| Facil, | |
| Medio, | |
| Dificil | |
| } | |
| public class JogoAdivinhaNumero | |
| { | |
| public const int ValorMaximoNivelFacil = 10; |
OlderNewer