start new:
tmux
start new with session name:
tmux new -s myname
| 047154e96192c13a351524366fc3497f030653d191114be825f1a5fbf1b756c0ec2b96adbbc37dd955b04c14516a99c24a624dfcaea14345208440c2c82c7f3c8a;evertonstz |
| declare module 'nanogl' { | |
| type uint = number | |
| type TypedArray = Int8Array | Int16Array | Int32Array | |
| | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | |
| | Float32Array | Float64Array | |
| type Image = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | |
| class Drawable { |
| package com.breel.gl.utils; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.nio.FloatBuffer; | |
| import java.nio.ShortBuffer; | |
| public class Buffer { | |
| private static final String TAG = Buffer.class.getSimpleName(); |
| package com.example.admin.sound; | |
| import android.Manifest; | |
| import android.content.pm.PackageManager; | |
| import android.os.Build; | |
| import android.support.v4.app.ActivityCompat; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.widget.TextView; |
| import THREE from 'three' | |
| import TrackballControl from 'three.trackball' | |
| import { textureLoader } from 'utils' | |
| const passThroughMaterial = new THREE.RawShaderMaterial({ | |
| uniforms: { | |
| uTexture: { type: 't', value: null } | |
| }, | |
| vertexShader: ` |
| class Signal<T> { | |
| private _listeners: ((data?: T) => any)[] | |
| constructor() { | |
| this._listeners = [] | |
| } | |
| public add(listener: (data?: T) => any) { | |
| const i = this._listeners.indexOf(listener) |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| var webpack = require('webpack'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'bundle.js' | |
| }, | |
| resolve: { | |
| modules: [ |
| // create | |
| char** arr = (char**) malloc(10 * sizeof(char**)); | |
| for(int i = 0; i < 10; ++i) { | |
| *(arr + i) = (char*) malloc(sizeof(char*) * 4); | |
| strcpy(*(arr + i), "test"); | |
| } | |
| // use | |
| for(int i = 0; i < 10; ++i) { |