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
using System; | |
using System.Collections.Generic; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
namespace C3.XNA | |
{ | |
/// <summary> | |
/// </summary> | |
public static class Primitives2D |
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
# You need to run VStats plugin and server | |
# See https://github.com/LibertyLocked/VStats | |
import RPi.GPIO as GPIO | |
import time | |
import urllib2 | |
import json | |
led0=17 | |
led1=18 |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; |
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
.data | |
prompt1: .asciiz "Enter the sequence index\n" | |
prompt2: .asciiz "The Fibonacci value is:\n" | |
.text | |
# Print prompt1 | |
li $v0, 4 | |
la $a0, prompt1 | |
syscall |
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
import java.util.*; | |
public class DlbDictionary implements DictionaryInterface | |
{ | |
// Constants | |
private final char TERMINATE_CHAR = '.'; // set this to whatever, but can't be a letter within English alphabet | |
// Fields | |
Node rootNode; // points to the 1st node on the 1st level. It does not have any peers, and only 1 child node | |
/** |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// YOU FILL IN THE CODE BODY FOR THIS FUNCTION BELOW MAIN | |
char * mygetline( char **buffer, FILE * instream ); // JUST A PROTOTYPE. FUNCTION BODY IS BELOW MAIN | |
// MAIN IS GIVEN AS-IS DO NOT MODIFY | |
int main( int argc, char *argv[] ) |
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
/* | |
project-1.c | |
As you develop and test this file: | |
use this command to compile: (you can name the executable whatever you like) | |
gcc -W -Wall -Wextra -O2 project-1.c -o project-1.exe | |
use this command to execute: (you will of course test on both input files) |
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
import java.util.Random; | |
public class ShowPath | |
{ | |
public static void main(String[] args) | |
{ | |
int point = 0; | |
BinaryNodeInterface<Character> root = generateTree(); | |
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
/** | |
* It is okay to use ArrayList class but you are not allowed to use any other | |
* predefined class supplied by Java. | |
*/ | |
import java.util.ArrayList; | |
public class CompressDecompress | |
{ | |
/** | |
* Get a string representing a Huffman tree where its root node is root |
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
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
use IEEE.STD_LOGIC_ARITH.ALL; | |
use IEEE.STD_LOGIC_UNSIGNED.ALL; | |
entity Counter2bit is | |
Port ( Up, CLR : in STD_LOGIC; | |
Q : out STD_LOGIC_VECTOR(1 downto 0)); | |
end Counter2bit; |