Skip to content

Instantly share code, notes, and snippets.

View codybonney's full-sized avatar

Cody Bonney codybonney

View GitHub Profile
Basic Usage:
--compilation_level (-O) VAL : Specifies the compilation level to
use. Options: BUNDLE, WHITESPACE_ONLY,
SIMPLE (default), ADVANCED (default:
SIMPLE)
--env [BROWSER | CUSTOM] : Determines the set of builtin externs
to load. Options: BROWSER, CUSTOM.
Defaults to BROWSER. (default:
BROWSER)
--externs VAL : The file containing JavaScript
#! /bin/sh
wid=$1
class=$2
# fix context menus in IntelliJ IDEA 2018.1
[[ "$class" = "jetbrains-idea" ]] && [[ $(xtitle "$wid") =~ ^win[0-9]*$ ]] && echo "manage=off";
@codybonney
codybonney / minibeast-desktop-benchmarks-05-09-17.txt
Last active May 9, 2017 15:42
Unix Benchmarks result for mini-beast desktop - May 9th, 2017
-` cody@minibeast
.o+` --------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Model: Z270X-Gaming 9
`+oooooo: Kernel: 4.10.13-1-ARCH
-+oooooo+: Uptime: 13 hours, 14 minutes
`/:-:++oooo+: Packages: 750
`/++++/+++++++: Shell: bash 4.4.12
`/++++++++++++++: Resolution: 2560x1440, 2560x1440
`/+++ooooooooooooo/` Theme: Arc-Dark [GTK2/3]
@codybonney
codybonney / arch-macbookpro-benchmarks-03-27-17.txt
Last active March 28, 2017 05:40
Unix Benchmarks result for Macbook Pro running Arch - March 27th, 2017
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: arch-mbp: GNU/Linux
OS: GNU/Linux -- 4.10.5-1-ARCH -- #1 SMP PREEMPT Wed Mar 22 14:42:03 CET 2017
Machine: x86_64 (unknown)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (4990.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (4991.3 bogomips)
@codybonney
codybonney / minibeast-desktop-benchmarks-03-27-17.txt
Last active March 28, 2017 05:30
Unix Benchmarks result for mini-beast desktop - March 27th, 2017
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: minibeast: GNU/Linux
OS: GNU/Linux -- 4.10.4-1-ARCH -- #1 SMP PREEMPT Sat Mar 18 19:39:18 CET 2017
Machine: x86_64 (unknown)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8403.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8404.2 bogomips)
/* Copyright (C) 2012-2013 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TO
<?php
class basicClass {
var $input;
var $output;
function __construct($input) {
$this->input = $input; // This is a valid thing to do in a constructor
}
}