- Ubuntu 14.04, 16.04, or 16.10
- Open up terminal
- Install core deps:
sudo apt-get install clang libicu-dev git
| <script> | |
| function execPolyfill() { | |
| (function(){ | |
| // CustomElementsV1.min.js v1 polyfill from https://github.com/webcomponents/webcomponentsjs/tree/v1/src/CustomElements/v1. | |
| /* | |
| Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | |
| This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
| The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| protocol SectionModel { | |
| var count: Int { get } | |
| func cell(at: Int) -> UITableViewCell | |
| func selected(at: Int) | |
| } |
| import math | |
| import pygame | |
| import numpy as np | |
| class Car(pygame.sprite.Sprite): | |
| def __init__(self, surface): | |
| self.bounded_rect = surface.get_rect() | |
| super(Car, self).__init__() |
| fastlane_version "1.57.0" | |
| require 'fileutils' | |
| default_platform :ios | |
| platform :ios do | |
| desc "Increment framework version" | |
| private_lane :increment_framework_version do |lane| |
| # 安裝 Homebrew | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # 安装 OCLint | |
| brew tap oclint/formulae | |
| brew install oclint | |
| # 安裝 xcpretty | |
| gem install xcpretty |
| http://slides.com/agar3s/que-debes-saber-para-hacer-un-juego-con-javascript#/ | |
| capacidades canvas | |
| http://codepen.io/agares/full/pJpoya/ | |
| capacidades webgl | |
| http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html | |
| capacidades dispositivos de entrada | |
| http://codepen.io/agares/full/NPdKOB/ |
| #!/bin/bash | |
| DIR=`pwd` | |
| SRC_DIR=$1 | |
| BUCKET=$2 | |
| TMP_DIR="/tmp/gzsync" | |
| mkdir -p $TMP_DIR | |
| # check that we have a trailing slash | |
| [[ $BUCKET != */ ]] && BUCKET="$BUCKET"/ |
| var HelloMessage = React.createClass({ | |
| render: function() { | |
| return <div tabIndex="1" onBlur={this.onBlur}> | |
| Hello <input type="text" value="wat"/> | |
| </div>; | |
| }, | |
| onBlur: function(e) { | |
| var currentTarget = e.currentTarget; |
| # /etc/fstab: static file system information. | |
| # | |
| # Use 'blkid' to print the universally unique identifier for a | |
| # device; this may be used with UUID= as a more robust way to name devices | |
| # that works even if disks are added and removed. See fstab(5). | |
| # | |
| # <file system> <mount point> <type> <options> <dump> <pass> | |
| # /home was on /dev/sda3 during installation |