If you're using only nginx (no Apache thx) and want to serve your projects using a local dev domain.
brew install nginx
Or download/unzip for Win: http://nginx.org/en/docs/windows.html
const a = [1,2,3]; | |
var acc = 0; | |
for (const v of a) { | |
acc += v; | |
} | |
// want clean code? use Array.reduce | |
console.log(acc); |
/* | |
Automatically generate dispatch functions as: | |
public function onDoubleArguments(one:String, two:Int) { | |
for (listener in listeners) | |
listener.onDoubleArguments(one, two); | |
} | |
*/ | |
class Example extends Dispatcher<Dynamic> | |
{ |
/* | |
We want to generate: | |
- getMyProperty / setMyProperty | |
- getAnotherProperty | |
- getYetAnotherProperty / setYetAnotherProperty | |
*/ | |
class Test implements Proxied | |
{ | |
public var MyPoperty(default, default):Int; |
package; | |
#if macro | |
import haxe.Json; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
import haxe.macro.Type; | |
import sys.io.File; | |
import sys.FileSystem; |
If you're using only nginx (no Apache thx) and want to serve your projects using a local dev domain.
brew install nginx
Or download/unzip for Win: http://nginx.org/en/docs/windows.html
// NOTE: run with `NODE_ENV=production` for optimal results | |
const fs = require('fs'); | |
const path = require('path'); | |
const UglifyJS = require('uglify-js'); | |
// Path to process | |
const bin = './bin'; | |
function onlyJS(files) { |
# Load dev projects paths as variables | |
~/LoadPath.ps1 | |
# Rust | |
$Env:PATH += ":$($Env:HOME)/.cargo/bin" | |
# Java 1.8 | |
#$Env:JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/" | |
# Java 11 | |
$Env:JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home" |
// ==UserScript== | |
// @name No sponsor | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide Facebook sponsored stories | |
// @author You | |
// @match https://www.facebook.com/ | |
// @grant none | |
// ==/UserScript== |