Skip to content

Instantly share code, notes, and snippets.

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class SwingHelloWorld extends JFrame{
public static void main(String[] args){
SwingHelloWorld frame = new SwingHelloWorld("Hello");
frame.setSize(500,500);
frame.setVisible(true);
@gskielian
gskielian / l298.ino
Last active August 29, 2015 13:56 — forked from treeherder/l298.ino
#include <stdint.h>
#define left_motor_forward() digitalWrite(M1A,HIGH); digitalWrite(M1B,HIGH);
#define left_motor_backward() digitalWrite(M1A,LOW); digitalWrite(M1B,LOW);
#define right_motor_forward() digitalWrite(M2A,LOW); digitalWrite(M2B,LOW);
#define right_motor_backward() digitalWrite(M2A,HIGH); digitalWrite(M2B,HIGH);
#define EN1A 9
@gskielian
gskielian / l298.ino
Last active August 29, 2015 13:56 — forked from treeherder/l298.ino
#include <stdint.h>
#define EN1A 9
#define M1A 8
#define EN1B 3
#define M1B 2
#define EN2A 4
#define M2A 5
#define EN2B 7
# Utilities for quickly accessing frequently used directories in bash.
# Usage:
# $ cd /path/to/project/src/
# $ mark code # Will create a new shortcut.
# # Becomes interactive if a shortcut already exists
# # m is an alias for mark. You can also `m code`
#
# $ code # From now on, running this anywhere in the shell
# # will put you in /path/to/project/src/code