This is pretty simple, lets dive in!
Find a name that isn't taken and clearly describes what your module is doing
$ npm view your-first-node-module
/* | |
* Copyright (C) 1999-2001 Brian Paul All Rights Reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* |
/** | |
* Diff Match and Patch | |
* | |
* Copyright 2006 Google Inc. | |
* http://code.google.com/p/google-diff-match-patch/ | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
/* | |
step.c | |
Program to verify new algorithm for linear acceleration. | |
Author: Pramod Ranade <pramod.ranade@spjsystems.com> | |
*/ | |
#include <stdio.h> | |
#include <io.h> | |
#include <stdlib.h> |
#include <glm/glm.hpp> | |
using namespace glm; | |
struct DDACursor { | |
vec3 mask; | |
vec3 mapPos; | |
vec3 rayStep; | |
vec3 rayDir; | |
vec3 rayPos; | |
vec3 sideDist; |
// The intention here is that you load up the svg in a browser and run the following | |
// in the console | |
var | |
s = 1,//-0.35, | |
cz = 144, // cut z | |
sz = 142, // safe z | |
materialWidth = 6, // in mm | |
passes = 3, | |
passWidth = materialWidth/passes, |
// Demo program for stepper motor control with linear ramps | |
// Hardware: PIC18F252, L6219 | |
#include "18F252.h" | |
// PIC18F252 SFRs | |
#byte TRISC = 0xf94 | |
#byte T3CON = 0xfb1 | |
#byte CCP2CON = 0xfba | |
#byte CCPR2L = 0xfbb | |
#byte CCPR2H = 0xfbc |
// a single threaded SDF->octree evaluator on the cpu. | |
#pragma CFLAGS=-I ../../include -march=native | |
#include <stdio.h> | |
#include <glm/glm.hpp> | |
#include <types.h> | |
using namespace glm; |
build |