https://code.visualstudio.com/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs| import React from 'react' | |
| import ReactCSSTransitionGroup from 'react-addons-css-transition-group' | |
| class Animated extends React.Component { | |
| constructor(){ | |
| super() | |
| this.state = { | |
| } | |
| } |
| import java.util.Random; | |
| import java.util.Scanner; | |
| /** | |
| * | |
| * @author Naya Maia | |
| */ | |
| public class GuessGameT { | |
| /** | |
| * @param args the command line arguments |
| 'use strict'; | |
| const nodemailer = require('nodemailer'); | |
| const {smtp} = require('./config.json'); | |
| const smtpTransport = require('nodemailer-smtp-transport'); | |
| // Generate test SMTP service account from ethereal.email | |
| // Only needed if you don't have a real mail account for testing | |
| nodemailer.createTestAccount((err, account) => { | |
| // create reusable transporter object using the default SMTP transport |
| var Foo = function () { | |
| if(this instanceof Foo){ | |
| this.a = true; | |
| this.b = 'hello'; | |
| this.c = 5; | |
| } else { | |
| return new Foo(); | |
| } | |
| }; |
https://code.visualstudio.com/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs| import {AbstractControl} from '@angular/forms'; | |
| export const CpfValidator = { | |
| numberValidator:function(){ | |
| return (control:AbstractControl):{[key:string]:any} =>{ | |
| let multipliers = [10,9,8,7,6,5,4,3,2] | |
| let value = control.value.replace(/\D+/g, ''); | |
| if(value.length===11){ | |
| control.markAsTouched(); | |
| let total = value.split('').reduce((total, item) => { |
| const chai = require('chai'); | |
| const expect = chai.expect; | |
| chai.use(require('chai-as-promised')); | |
| chai.should(); | |
| describe('Promises', function() { | |
| it('Should be true', function() { | |
| return Promise.resolve(true).should.eventually.equal(true); | |
| }); |
| dependencies { | |
| compile 'com.android.support:design:22.2.1' | |
| } |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- Copyright (C) 2011 Jake Wharton | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and |
###The Web Ahead Conversations with world experts on changing technologies and future of the web. The Web Ahead is your shortcut to keeping up.
###Shop Talk Show An internet radio show about the internet starring Dave Rupert and Chris Coyier.