Skip to content

Instantly share code, notes, and snippets.

import (
"fmt"
"io/ioutil"
"os"
"sync"
)
var wg sync.WaitGroup
func main() {
class Song
attr_reader :name, :duration
def initialize(name, duration)
@name = name
@duration = duration
end
def song
end
foo = {:bar => nil, :hello => "World" }
foo.keys.each do |key|
case key
when foo[key].nil?
puts "Nil!"
else
puts "Not Nil!"
end
end
@clandry94
clandry94 / wire.txt
Last active May 14, 2016 01:00
wiremod git links
git clone https://github.com/wiremod/wire.git wire
git clone https://github.com/wiremod/advdupe2.git advdupe2
git clone https://github.com/wiremod/advduplicator.git advduplicator
git clone https://github.com/wiremod/wire-extras.git wire-extras
git clone https://github.com/nrlulz/ACF.git ACF
git clone https://github.com/Rusketh/ExpAdv2.git ExpAdv2
var1: .word 23 # declare storage for var1; initial value is 23
.text
__start:
lw $t0, var1 # load contents of RAM location into register $t0: $t0 = var1
done
while(isRunning)
{
int val = input.nextInt(); //menu item select
if(val == 1) {
val = input.nextInt(); //Get input
if(val > 2)
{
System.out.println("Bad input!")
continue;
/* ---------- ----------
* - Data - - Data -
* ---------- ----------
* - Pointer- - - -> - Pointer-
---------- ---------- */
#include <iostream>
struct node {
int data;