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 reverseWords(s: string): string { | |
let chars = [] | |
for (let i = 0; i < s.length; i++) { | |
chars.push(s.charAt(i)) | |
} | |
let front = 0 | |
let back = chars.length - 1 |
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
#version 300 es | |
precision mediump float; | |
/** | |
RGB material definition. | |
*/ | |
struct RGBMaterial { | |
/// Emissive component. |
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
/** | |
* Create main scene light. | |
* | |
* @returns a point light scene. | |
*/ | |
function createLight() { | |
var lightGeometry = new THREE.SphereGeometry(0); | |
var lightMaterial = new THREE.MeshStandardMaterial({ | |
emissive: 0xffffee, |
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 gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var sass = require('gulp-sass'); | |
var child = require('child_process'); | |
var gutil = require('gulp-util'); | |
var browserSync = require('browser-sync').create(); | |
var uglify = require('gulp-uglify'); | |
var argv = require('yargs').argv; | |
var critical = require('critical'); |
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
if let url = URL(string: "<URL STRING>") { | |
//Standard request. | |
let request = URLRequest(url: url) | |
let sessionDataTask = URLSession(configuration: .default).dataTask(with: request, completionHandler: { | |
(data:Data?, response:URLResponse?, error:Error?) in | |
if error != nil { | |
//Manage error. |