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
| // ==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== |
| # 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" |
| // 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) { |
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
| 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; |
| /* | |
| We want to generate: | |
| - getMyProperty / setMyProperty | |
| - getAnotherProperty | |
| - getYetAnotherProperty / setYetAnotherProperty | |
| */ | |
| class Test implements Proxied | |
| { | |
| public var MyPoperty(default, default):Int; |
| /* | |
| 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> | |
| { |
| const a = [1,2,3]; | |
| var acc = 0; | |
| for (const v of a) { | |
| acc += v; | |
| } | |
| // want clean code? use Array.reduce | |
| console.log(acc); |
| Array.prototype.poop = function() { | |
| this.pop(); | |
| // return nothing, it's poop | |
| } | |
| Array.prototype.shit = function() { | |
| this.shift(); | |
| // return nothing, it's poop | |
| } |
| package modules; | |
| class Module1 | |
| { | |
| static public function main() | |
| { | |
| trace("Module1 is loaded"); | |
| var m1 = new Module1(); | |
| } |