Description
Motivation
Instructions
{ | |
"scripts": { | |
"start": "webpack-dev-server --config webpack.dev.config.js", | |
"clean": "rm -rf ./dist", | |
"build": "webpack --config webpack.prod.config.js --progress" | |
} | |
} |
import os | |
import ycm_core | |
flags = [ | |
'-Wall', | |
'-std=c++11', | |
# ...and the same thing goes for the magic -x option which specifies the | |
# language that the files to be compiled are written in. This is mostly |
# Generate with cmake -G "Unix Makefiles" .. | |
# Set minimum version | |
cmake_minimum_required(VERSION 3.4 FATAL_ERROR) | |
# Project name | |
project("project name") | |
# Project entry point | |
# no need to include headers |
// 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) { |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
filename: 'bundle.js' | |
}, | |
resolve: { | |
modules: [ |
#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/ |
class Signal<T> { | |
private _listeners: ((data?: T) => any)[] | |
constructor() { | |
this._listeners = [] | |
} | |
public add(listener: (data?: T) => any) { | |
const i = this._listeners.indexOf(listener) |
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: ` |