Skip to content

Instantly share code, notes, and snippets.

View gist:1a490cbf13b32243e02769d3ac4bf426
typedef union
{
struct
{
uint8_t bit1 : 1;
uint8_t bit2 : 1;
uint8_t bit3 : 1;
uint8_t bit4 : 1;
uint8_t bit5 : 1;
uint8_t bit6 : 1;
View Cycloidal Script
import adsk.core, adsk.fusion, adsk.cam, traceback, math
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
#ui.messageBox('Hello script')
design = app.activeProduct
# Get the root component of the active design.
@macaba
macaba / .block
Created Apr 19, 2017 — forked from mbostock/.block
Brush Handles
View .block
license: gpl-3.0
@macaba
macaba / .block
Last active Apr 19, 2017 — forked from mbostock/.block
Brush & Zoom
View .block
license: gpl-3.0
View gist:b753612db3b5b1b975b8
#include <SPI.h>
#include <DmaSpi.h>
uint16_t buffer[128][128];
#define DMASIZE 16384
DmaSpi::Transfer trxA(nullptr, 0, nullptr);
DmaSpi::Transfer trxB(nullptr, 0, nullptr);
uint32_t transferCount = 0;
void setup() {
You can’t perform that action at this time.