Skip to content

Instantly share code, notes, and snippets.

@Piyush3dB
Piyush3dB / .block
Created December 22, 2020 04:48 — forked from tonyhschu/.block
Small Scroll-linked Animation Demo
scrolling: yes
license: MIT
import bpy
from random import randint
class Monkey(object):
def __init__(self, location=(0,0,0)):
self.location = location
import bpy
import math
class flower(object):
def __init__(self):
# mesh arrays
verts = []
faces = []
import bpy
class Robot(object):
def __init__(self):
pass
def addBody(self, value=(0, 0, 0)):
#body
@Piyush3dB
Piyush3dB / readme
Last active February 27, 2019 07:43
Sqlite sakila database
sqlite3
.read schema.sql
.read insert.sql
.tables
.schema
.save sakila.db
.quit
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
@startuml
skinparam classFontName Century
start
:canvas = document.getElementById("canvas");
note left: <canvas id="canvas"></canvas>
:gl = canvas.getContext("webgl");;
@Piyush3dB
Piyush3dB / README.md
Created February 10, 2019 09:56 — forked from sxywu/README.md
The Force with React + D3, Approach #3

React + D3 exploration with the force layout:

  • React for structure
  • D3 for data calculation
  • D3 for rendering

Pro:

  • The viz scales!
  • Use all the d3 functions!

Con:

@Piyush3dB
Piyush3dB / VanillaReact.html
Created February 8, 2019 17:11
Simple page using React+JSX without npm/webpack build step.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@Piyush3dB
Piyush3dB / gdsii.lua
Created May 15, 2018 10:17 — forked from jbcrail/gdsii.lua
Simple GDSII parser
-- A basic GDSII reader that reads from standard input and writes serialized
-- text to standard output
local gdsii = {}
gdsii.types = {
[0] = "HEADER",
[1] = "BGNLIB",
[2] = "LIBNAME",
[3] = "UNITS",
@Piyush3dB
Piyush3dB / compStr.uml
Created August 10, 2017 22:07
PlantUML Composite structure diagram
@startuml
sprite $businessProcess [16x16/16] {
FFFFFFFFFFFFFFFF
FFF000000000FFFF
FFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF
FFFFFFFFFF0FFFFF
FFFFFFFFFF00FFFF
FF00000000000FFF
FF000000000000FF