View _index.jsx
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 { Link } from "@remix-run/react"; | |
import { useQuery } from "../../convex/_generated/react"; | |
export const meta = () => { | |
return [{ title: "New Remix App" }]; | |
}; | |
export default function Index() { | |
const tasks = useQuery("getTasks"); | |
return ( |
View scrollview.rs
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
use tui::{ | |
buffer::Buffer, | |
layout::Rect, | |
style::Style, | |
text::{Spans, Text}, | |
widgets::{Block, StatefulWidget, Widget}, | |
}; | |
use unicode_segmentation::UnicodeSegmentation; | |
use unicode_width::UnicodeWidthStr; |
View test_bmesh_ops.py
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
raw_mesh = bmesh.new() | |
# setup | |
bmesh.ops.create_cube(raw_mesh) | |
raw_mesh.verts.ensure_lookup_table() | |
# end of setup | |
bmesh.ops.smooth_vert(raw_mesh) | |
bmesh.ops.smooth_laplacian_vert(raw_mesh) | |
bmesh.ops.recalc_face_normals(raw_mesh) |
View bmesh_api_docs.diff
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
diff --git a/doc/python_api/rst/bmesh.ops.rst b/doc/python_api/rst/bmesh.ops.rst | |
index cfd99c1..e44eab5 100644 | |
--- a/doc/python_api/rst/bmesh.ops.rst | |
+++ b/doc/python_api/rst/bmesh.ops.rst | |
@@ -15,7 +15,7 @@ Operator Example | |
This script shows how operators can be used to model a link of a chain. | |
.. literalinclude:: __/examples/bmesh.ops.1.py | |
-.. function:: smooth_vert(bm, verts, factor, mirror_clip_x, mirror_clip_y, mirror_clip_z, clip_dist, use_axis_x, use_axis_y, use_axis_z) | |
+.. function:: smooth_vert(bm, verts=[], factor=0, mirror_clip_x=False, mirror_clip_y=False, mirror_clip_z=False, clip_dist=0, use_axis_x=False, use_axis_y=False, use_axis_z=False) |
View drawBetterSelection.js
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 { drawSelection, ViewPlugin, Direction } from "@codemirror/view"; | |
import { combineConfig, Facet, EditorSelection } from "@codemirror/state"; | |
const [_, _2, hideNativeSelection] = drawSelection(); | |
const selectionConfig = Facet.define({ | |
combine(configs) { | |
return combineConfig( | |
configs, | |
{ |
View testfile.js
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
/** | |
* Given the starting source, starting position, and the ending source this | |
* function guesses where the cursor should move to. | |
*/ | |
function updateCursor( | |
startSource: string, | |
startPosition: {row: number, column: number}, | |
endSource: string, | |
): {row: number, column: number} { | |
for (const accuracy of ACCURACIES) { |
View gist:e8b74ff74e98bdd0c137
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
Rules (type (Map Char String)) | |
System (record angle: Num base: (List Char) rules: Rules) | |
tree (fn [angle] (System angle | |
{\M} | |
(Map | |
\M "N[-M][+M][NM]" | |
\N "NN" | |
\[ "[" | |
\] "]" |
View gist:4fb78f5f9569b40c01fc
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
+ (macro [x y] | |
(: (Fn Num Num Num)) | |
(Js.binary "+" x y)) | |
- (macro [what from] | |
(: (Fn Num Num Num)) | |
(Js.binary "-" from what)) | |
* (macro [x y] | |
(: (Fn Num Num Num)) |
View simpler-gump.coffee
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
{task, watch, serve} = require 'gump' | |
bower = require 'gulp-bower-files' | |
flatten = require 'gulp-flatten' | |
stylus = require 'gulp-stylus' | |
jade = require 'gulp-jade' | |
clean = require 'gulp-clean' | |
task 'default', | |
'clean' | |
-> watch 'sources' |
View tables.coffee
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
render: -> | |
_.table _, | |
_.thead _, | |
_.tr _, | |
_.th "BV" | |
_.th "x1" | |
_.th "x2" | |
_.th "x3" | |
_.th "x4" | |
_.th "RHS" |
NewerOlder