I hereby claim:
- I am troykinsella on github.
- I am troykinsella (https://keybase.io/troykinsella) on keybase.
- I have a public key ASCRymHFy0wBxt-Wq918MyP0Xg_vmM3WOw7TH7IkqDBStAo
To claim this, I am signing this object:
This is surely incorrect, and possibly terrible. Do not use! | |
``` | |
use bevy::prelude::Mesh; | |
use geo_types::{Coordinate, LineString, Polygon}; | |
pub fn mesh_to_clipper_polygon(mesh: &Mesh) -> Option<Polygon> { | |
let vertex_count = mesh.count_vertices(); | |
if let Some(positions) = mesh.attribute(Mesh::ATTRIBUTE_POSITION) { |
#!/usr/bin/env bash | |
set -e | |
GH_USER=${GH_USER:-$1} | |
GH_REPO=${GH_REPO:-$2} | |
ASSET=${ASSET:-$3} | |
VERSION=${VERSION:-${4:-latest}} | |
usage() { |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'erb' | |
require 'yaml' | |
class HashBinding | |
def initialize(hash) | |
@hash = hash.dup | |
end | |
def method_missing(m, *args, &block) |
#!/usr/bin/env node | |
var fs = require('fs'); | |
var str = fs.readFileSync("/dev/stdin", "utf8"); | |
var json = JSON.parse(str); | |
function print(path, o) { | |
if (Array.isArray(o)) { | |
printArray(path, o); | |
} else if (typeof o === 'object') { |
#!/usr/bin/env ruby | |
require 'optparse' | |
class StringInterpolator | |
def initialize(inFile, vars) | |
@in = File.open(inFile).read | |
@vars = vars | |
end |