A Pen by Maiah Macariola on CodePen.
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
| final List<int> data = new List<int>(); | |
| req.inputStream.onData = () { | |
| data.addAll(req.inputStream.read()); | |
| }; | |
| req.inputStream.onClosed = () { | |
| String dataString = new String.fromCharCodes(data); | |
| List<String> contents = dataString.split('\n'); |
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 domify = require('domify'); | |
| var View = require('view'); | |
| var html = '<input type="text" class="name"></input>'; | |
| var Person = function(name) { | |
| this.name = name; | |
| }; | |
| var maiah = new Person('Maiah Macariola'); |
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
| function int add(int a, int b) { | |
| return a + b; | |
| } | |
| let int sum = add(5, 7); | |
| trace('sum = ' + sum); |
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 dom = require('dom'); | |
| var bodyContent = '<div class="container">' + | |
| '<span class="title">Click the sentence below</span>' + | |
| '<br>' + | |
| '<span class="msg">Hello classy</span>' + | |
| '</div>'; | |
| var content = dom(bodyContent)[0]; |
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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
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
| package main | |
| import "fmt" | |
| type nums []int | |
| func (n nums) copy() []int { | |
| dest := make(nums, len(n)) | |
| copy(dest, n) | |
| return dest |
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
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| ) | |
| type Power struct { | |
| up int | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| ) | |
| type Power struct { | |
| up int | |
| } |
OlderNewer