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 ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"sync" | |
) | |
var wg sync.WaitGroup | |
func main() { |
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
class Song | |
attr_reader :name, :duration | |
def initialize(name, duration) | |
@name = name | |
@duration = duration | |
end | |
def song | |
end |
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
foo = {:bar => nil, :hello => "World" } | |
foo.keys.each do |key| | |
case key | |
when foo[key].nil? | |
puts "Nil!" | |
else | |
puts "Not Nil!" | |
end | |
end |
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
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 |
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
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 |
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
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; |
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 - - Data - | |
* ---------- ---------- | |
* - Pointer- - - -> - Pointer- | |
---------- ---------- */ | |
#include <iostream> | |
struct node { | |
int data; |