This file contains 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
#!/bin/sh | |
if [ -z $1 ]; then | |
echo "Must provide a location" | |
exit 1 | |
fi | |
DIR="$(realpath "$1")" | |
echo "Creating project at $DIR" |
This file contains 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
package io.nolawnchairs.util; | |
public enum AnsiColor { | |
//Color end string, color reset | |
RESET("\033[0m"), | |
// Regular Colors. Normal color, no bold, background color etc. | |
BLACK("\033[0;30m"), // BLACK | |
RED("\033[0;31m"), // RED | |
GREEN("\033[0;32m"), // GREEN |
This file contains 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
/** | |
* Represents a function that accepts one argument and produces a result. | |
* @template T the parameter type | |
* @template U the return type | |
*/ | |
export type Function<T, U> = (value: T) => U | |
/** | |
* Represents a function that accepts two arguments and produces a result. |
This file contains 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 'dart:math' show max, min, tan, pi, sin, log, atan, exp, cos, sqrt; | |
class LatLng { | |
double latitude; | |
double longitude; | |
} | |
class PolyUtil { | |
PolyUtil._() {} |
This file contains 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
export function murmur32(key: string, seed: number) { | |
let remainder = key.length & 3 // key.length % 4 | |
let bytes = key.length - remainder | |
let h1 = seed | |
let c1 = 0xcc9e2d51 | |
let c2 = 0x1b873593 | |
let i = 0 | |
let k1 = 0 |
This file contains 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
export class ModularItem<E> { | |
private readonly _value: E | |
private _position = 0 | |
constructor(value: E, position: number = 0) { | |
this._value = value | |
this._position = position | |
} |
This file contains 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
/* | |
* # Semantic UI - 2.4.2 | |
* https://github.com/Semantic-Org/Semantic-UI | |
* http://www.semantic-ui.com/ | |
* | |
* Copyright 2014 Contributors | |
* Released under the MIT license | |
* http://opensource.org/licenses/MIT | |
* | |
*/ |
This file contains 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
package whatever; | |
import org.mongodb.morphia.logging.Logger; | |
import org.mongodb.morphia.logging.LoggerFactory; | |
import org.mongodb.morphia.logging.MorphiaLoggerFactory; | |
public class MorphiaLogger implements Logger { | |
private final org.slf4j.Logger logger; |