Since their website is absolutely horrible to download anything, here are the direct links to download everything that they offer.
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
// TextureTransformation.shader | |
// A simple shader that allows us to transition between two textures from a script. | |
// | |
// Author: Nathan Campos <[email protected]> | |
Shader "Custom/TextureTransformation" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Original Texture", 2D) = "white" {} | |
_TransTex("Transformed Texture", 2D) = "gray" {} |
This style guide is based on the one used by GitHub, but with some changes that make the code a tiny bit more readable.
-
Use soft-tabs with a two space indent.
-
Keep each line of code to a readable length. Unless you have a reason to, keep lines to fewer than 100 characters.
-
Never leave trailing whitespace.
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
/* | |
* File: MintyUSBoost.c | |
* Author: Nathan Campos <[email protected]> | |
* | |
* Created on February 14, 2016, 2:45 PM | |
*/ | |
// 12F683 | |
// +---------+ | |
// -|Vdd Vss|- |
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
#' linear_vreg_res.R | |
#' Calculates the resistor values to be used in a op-amp based linear voltage | |
#' regulator according to a specific selection of voltage references. | |
#' | |
#' @author Nathan Campos <[email protected]> | |
# Generates a E12 series of resistors. | |
e12_resistors <- function (steps = c(1000, 10000, 100000)) { | |
base = c(1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2) | |
e12 = c() |
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
#!/bin/env python | |
### plot_thd.py | |
### Plot the THD of a circuit over a range of frequencies using ngspice. | |
### | |
### Author: Nathan Campos <[email protected]> | |
import os | |
import sys | |
import subprocess |
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
# Autodetach session on hangup instead of terminating screen completely | |
autodetach on | |
# Set the colors to 256 and enable bold. | |
term screen-256color | |
attrcolor b ".I" | |
# 30.000-line scrollback buffer. | |
defscrollback 30000 |
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
void *IRC_Client::handle_recv(void) { | |
// recv some data. | |
int numbytes; | |
char buffer[MAXDATASIZE]; | |
while (true) { | |
numbytes = recv(socket_descriptor, buffer, MAXDATASIZE - 1, 0); | |
buffer[numbytes] = '\0'; | |
if (numbytes == 0) { |
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
Timer timer = new Timer(); | |
timer.scheduleAtFixedRate(new TimerTask() { | |
public void run() { | |
UiApplication.getUiApplication().invokeLater(new Runnable() { | |
public void run() { | |
// Do something when the timer ticks | |
} | |
}); | |
} |