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
<?php | |
// first create a new voice chat room: | |
$options = array( | |
'http' => array( | |
'header' => "Content-type: application/x-www-form-urlencoded\r\n", | |
'method' => 'POST', | |
'content' => http_build_query(array()), | |
) |
# 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" |
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; |
Array.prototype.poop = function() { | |
this.pop(); | |
// return nothing, it's poop | |
} | |
Array.prototype.shit = function() { | |
this.shift(); | |
// return nothing, it's poop | |
} |
// ==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== |
// 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) { |
/* | |
We want to generate: | |
- getMyProperty / setMyProperty | |
- getAnotherProperty | |
- getYetAnotherProperty / setYetAnotherProperty | |
*/ | |
class Test implements Proxied | |
{ | |
public var MyPoperty(default, default):Int; |
const a = [1,2,3]; | |
var acc = 0; | |
for (const v of a) { | |
acc += v; | |
} | |
// want clean code? use Array.reduce | |
console.log(acc); |
class JQ | |
{ | |
static public inline function select(j:js.Dom.HtmlDom):js.JQuery | |
{ | |
return new js.JQuery(j); | |
} | |
static public inline function query(j:String):js.JQuery | |
{ | |
return new js.JQuery(j); |
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