Skip to content

Instantly share code, notes, and snippets.

@knowuh
knowuh / CsvToMesh.py
Created April 12, 2023 13:20
Import a CSV file to a new mesh. All the vertices will be at 0,0,0. Use GeoNodes to map attributes.
bl_info = {
"name": "CSV Mesh Importer",
"author": "Noah and GTP4 :D",
"version": (1, 0),
"blender": (3, 5, 0),
"location": "View3D > Tool Shelf > CSV Mesh Importer",
"description": "Import a mesh from a CSV file",
"category": "Import-Export",
}
Sample # Northing (UTM) Easting (UTM) North Offset (m) East Offset (m) Distance km Total thickness (cm) Mass loading (kg /m2) Deposit denisty (Kg / m3)
CN_1 526028 1380972 6357.00 1687.00 6.58 27 531.74 1107.80
CN_2 525477 1380291 6908.00 2368.00 7.30 47 286.00 1059.27
CN_3 524516 1379866 7869.00 2793.00 8.35 22 498.23 1060.06
CN_4 523595 1379462 8790.00 3197.00 9.35 21 248.27 1128.48
CN_5 522674 1379481 9711.00 3178.00 10.22 20 245.58 1169.45
CN_6 521642 1379304 10743.00 3355.00 11.25 15 235.00 1175.02
CN_7 520715 1378964 11670.00 3695.00 12.24 11 171.60 1143.99
CN_8 519877 1378201 12508.00 4458.00 13.28 5 120.24 1093.08
CN_9 520742 1379432 11643.00 3227.00 12.08 13 62.85 1256.96
@knowuh
knowuh / keybase.md
Created August 20, 2018 19:47
public keybase.io verification

Keybase proof

I hereby claim:

  • I am knowuh on github.
  • I am knowuh (https://keybase.io/knowuh) on keybase.
  • I have a public key ASB0okZNfRKBhVypeGHmt3lxh4lDdM4fGxdoRkM39_BVSgo

To claim this, I am signing this object:

@knowuh
knowuh / proposed-rubric.json
Last active February 23, 2018 22:22
Proposed rubric format ( NP 2018-02-23)
{
"id": "RBK1",
"version": "12",
"updatedMsUTC": 1519424087822,
"originUrl": "http://concord.org/rubrics/RBK1.json",
"scoreUsingPoints": false,
"showRatingDescriptions": false,
"criteria": [{
"id": "C1",
"description": "Use mathematical and/or computational representations to support explanations of factors that affect carrying capacity of ecosystems at different scales. ",
@knowuh
knowuh / es_input.cfg
Created September 1, 2017 20:17
Emulation Station Controller Configuration file 2017-09-01 paessel
<?xml version="1.0"?>
<inputList>
<inputConfig type="joystick" deviceName="USB Gamepad " deviceGUID="03000000790000001100000010010000">
<input name="a" type="button" id="1" value="1" />
<input name="b" type="button" id="2" value="1" />
<input name="down" type="axis" id="1" value="1" />
<input name="hotkeyenable" type="button" id="8" value="1" />
<input name="left" type="axis" id="0" value="-1" />
<input name="leftshoulder" type="button" id="4" value="1" />
<input name="right" type="axis" id="0" value="1" />
import SharingContext from "./sharing-context"
export type Jpeg = {type: "image/jpeg", extension: "jpg" }
export type Csv = {type: "text/csv", extension: "csv" }
export type Binary = {type: "application/octet-stream", extension: "bin" }
export type Json = {type: "application/json", extension: "json" }
export type RepresentationType = Jpeg | Csv | Binary | Json
export type Url = string
var width = 500;
var height = 500;
var radius = 5;
var margin = { top:10, bottom:60, left:25, right:10 }
var scatterPlot;
var scaleHRs;
var scaleGames;
var svg;
var data;
@knowuh
knowuh / gist:43259c5a80c40e76714a14cd00c7acdc
Created September 14, 2016 14:56
AW's unlinked runs.
- user ID 29963
- student ID 27959
- learner: 29675
- offering: 2749
AW's runs in authoring:
[2007701, "Interaction Pre-test (Unit 1, Part 1) v1",
nil,
"https://learn.concord.org/dataservice/external_activity_data/f3ec750a-e4a2-4eb
d-9cc5-753012f0f1a8"]
@knowuh
knowuh / hash_including_matcher.rb
Created July 29, 2016 17:28
rspec matcher for finding a hash inside an array.
RSpec::Matchers.define :include_hash do |comp_hash|
match do |actual|
found = false
actual.each do |test|
hash_matched = true
comp_hash.each_pair do |key,value|
hash_matched = hash_matched && test.has_key?(key) && test[key] == value
end
found = hash_matched
break if found
@knowuh
knowuh / a.html
Created September 2, 2015 22:02
some html tests
<!DOCTYPE html>
<html>
<head>
<base href="http://concord-consortium.github.io/lara-interactive-api/">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>content from http://concord-consortium.github.io/lara-interactive-api/ 2015-09-02 (09:49PM)</title>
<link rel="stylesheet" href="css/app.css"><style id="style-1-cropbar-clipper">/* Copyright 2014 Evernote Corporation. All rights reserved. */
.en-markup-crop-options {
top: 18px !important;