documents - opens your Documents folder.
downloads - opens your Downloads folder.
favorites - opens the Favorites folder from your Windows 10's Internet Explorer.
pictures - opens your Pictures folder.
videos - opens your Videos folder.
calc - opens the Calculator app.
cleanmgr - opens Disk Cleanup.
compmgmt.msc or compmgmtlauncher - opens the Computer Management console.
control - launches Control Panel.
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CharacterMotionAndAnimation : MonoBehaviour | |
{ | |
public Animator animator; | |
public GameObject camera; | |
public CharacterController controller; | |
public Vector3 playerVelocity; |
This file contains 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 () { | |
let files = [ | |
'readme.md' | |
]; | |
let converter = new showdown.Converter(); | |
let entries = []; | |
function updateBlog(_entries, _files) { | |
let blog = document.getElementById("MicroBlog"); | |
if (blog != null) { |
This file contains 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
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'myPipe' | |
}) | |
export class MyPipe implements PipeTransform { | |
transform(value, args?) { | |
return //... logic goes here ... | |
} | |
} |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>React Starter</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script> |
This file contains 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
<select [ngModel]="vm.selectedThing" | |
(ngModelChange)="onSelectThing($event)"> | |
<option [value]="null">-</option> | |
<option *ngFor="let thing of vm.things" | |
[value]="thing.id" | |
[disabled]="thing.isDisabled"> | |
{{thing.name}} | |
</option> | |
</select> |
This file contains 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
type Rectangle = { | |
x: number, | |
y: number, | |
h: number, | |
w: number | |
} | |
function areRectanglesColliding(a: Rectangle, b: Rectangle) { | |
const i = a.x < (b.x + b.w); | |
const ii = b.x < (a.x + a.w); |
-
uninstall node
-
clean out npm and npm-cache in %APPDATA%
-
install NVM ( https://github.com/coreybutler/nvm-windows/releases )
-
install different versions of node
This file contains 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 arrayTo3DGrid(xMax, yMax, zMax) { | |
let vertices = [] | |
let totalVertices = xMax * yMax * zMax; | |
let xySquare = xMax * yMax; | |
for (let i = 0; i < totalVertices; i++) { | |
let x = i % xMax; | |
let z = Math.floor(i / (xySquare)); | |
let ii = i - (z * xySquare); | |
let y = Math.floor(ii / xMax); | |
vertices.push(x, y, z); |
This file contains 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
import os | |
folder = 'D:\Projects\python\poems_need_fixing\\' | |
for filename in os.listdir(folder): | |
full_filename = folder+filename | |
print " START " + filename | |
r = open(full_filename,'r') | |
lines = r.readlines() | |
open(full_filename, "w").close() |