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 <iostream> | |
#include <stdlib.h> | |
#include <time.h> | |
#define QUEENS 8 | |
using namespace std; | |
class Board { | |
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
//Has to be complied and built using the option -std=c++0x | |
//TODO: Beautify some of the functions. Introduce parameters to control the difficult of the generated board. | |
#include <tuple> | |
#include <ctime> | |
#include <vector> | |
#include <ctype.h> | |
#include <cstdlib> | |
#include <iostream> | |
typedef std::tuple<int, int, int> flow; |
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
10 | |
...rr..brb | |
..b...r.bb | |
.r....b... | |
.b.r...b.. | |
r......... | |
r.....r..r | |
.rb..r..rr | |
b..b...r.. | |
.....r...r |
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.Stack; | |
import java.util.Scanner; | |
import java.util.HashMap; | |
import java.io.FileReader; | |
import java.util.ArrayList; | |
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
class Juck { |
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
;Little Endian --> Lower bytes in lower address and higher bytes in higher address. | |
EQU LOOKUP #0FEH | |
EQU ACC 0E0H | |
EQU EPCL 14H | |
EQU EPCH 15H | |
EQU ESPL 16H | |
EQU ESPH 17H | |
EQU EL 18H |
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
#!/bin/bash | |
if [[ $(cat /sys/class/power_supply/BAT0/status) == "Charging" ]]; then | |
exit | |
fi | |
charge=$(cat /sys/class/power_supply/BAT0/capacity) | |
icon="/usr/share/icons/HighContrast/32x32/status/battery-caution.png" | |
if [[ $charge < 10 ]]; then |
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
});(function(){ |