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 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
echo off | |
git submodule foreach "git add . || :" | |
git submodule foreach "git commit -m \"%*\" || :" | |
git submodule foreach "git push || :" | |
git add . | |
git commit -m "%*" | |
git push |
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
Shader "Custom/VertexColorEmissive" | |
{ | |
Properties | |
{ | |
_MainTex("Color (RGB) Alpha (A)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic("Metallic", Range(0,1)) = 0.0 | |
_Emissive ("Emissive", Range(0,1)) = 1.0 | |
_Cutoff("Alpha cutoff", Range(0,1)) = 0.2 | |
} |
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
ffmpeg -i "./%*.flv" -c:v libx264 -crf 19 -strict experimental "./%*.mp4" |
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
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 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 () { | |
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 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
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'myPipe' | |
}) | |
export class MyPipe implements PipeTransform { | |
transform(value, args?) { | |
return //... logic goes here ... | |
} | |
} |
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
<!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 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
<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 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
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); |