This file contains hidden or 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
/* | |
* Edit this file and copy it as userChrome.css into your | |
* profile-directory/chrome/ | |
*/ | |
/* | |
* This file can be used to customize the look of Mozilla's user interface | |
* You should consider using !important on rules which you want to | |
* override default settings. | |
*/ |
This file contains hidden or 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
import java.util.function.IntPredicate; | |
import java.util.stream.Collectors; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* Here's the same program, but in Java this time to demonstrate the | |
* boilerplate difference between Java and Scala. | |
* | |
* My solution to the classic fizz-buzz problem. |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,64,00,3a,00,00,00,00,00 | |
This file contains hidden or 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
-- Author: Michael Ripley | |
-- Create Date: 01:46:02 10/08/2015 | |
-- Module Name: clock_divider - Behavioral | |
-- Description: If clock period is 10ns and divisor is 10, Q's period will be | |
-- 100ns. Essentially this is a clock divider where you can | |
-- specifiy an arbritrary divisor. | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// a linked-list node | |
struct node { | |
char *word; | |
struct node *next; | |
}; |
This file contains hidden or 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
import scala.collection.immutable.{HashSet, SortedSet} | |
import scala.collection.mutable.MutableList | |
import java.io.{BufferedWriter, FileWriter} | |
object TwoWordPalindrome { | |
val milliPerNano = 1000000d // 1 million milliseconds in a nanosecond | |
val outFileName = "two-word-palindromes.txt" // name of file found palindromes will be written to | |
val twoWordPalindromes = MutableList[(String, String)]() // list that results will be appended to | |
This file contains hidden or 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
import java.util.*; | |
class Braces { | |
public static void main(String[] args) { | |
List<String> list = new ArrayList<String>(){{ | |
add("michael"); | |
add("was"); | |
add("here"); | |
}}; | |
This file contains hidden or 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/bash | |
ps -Ne u | |
ps aux | fgrep "$1" | fgrep -v fgrep | fgrep -v $$ |
This file contains hidden or 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/bash | |
#magically arrayify $PATH | |
IFS=':' read -a arr <<< "$PATH" | |
# iterate | |
for i in "${arr[@]}"; do | |
# grep for arg 1 | |
ls -1 "$i" | fgrep "$1" | |
done |
This file contains hidden or 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/sh | |
PREFIX=i686-w64-mingw32 | |
export CC=$PREFIX-gcc | |
export CXX=$PREFIX-g++ | |
export CPP=$PREFIX-cpp | |
export RANLIB=$PREFIX-ranlib | |
exec "$@" |