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
var _q = 'fz.default.q'; | |
let _conn = false | |
let _sendChannel = false | |
let _server = "amqp://localhost" | |
let _userName = "" | |
let _password = "" | |
let _onConsume = setMessage | |
let _connectionIsEstablished = false |
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<iostream> | |
#include<string> | |
using namespace std; | |
template <class T> | |
class PriorityQueue{ | |
private: | |
T *_array; |
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
g++ -g -std=c++11 mymain.cpp ./subfolder/myutil.cpp ./subfolder/myutil2.cpp -o myprogram.exe | |
./myprogram.exe | |
valgrind ./myprogram.exe |
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.awt.*; | |
class Window extends Frame{ | |
Window(){ | |
setSize(800,900);//frame size 300 width and 300 height | |
setLayout(null);//no layout manager | |
setVisible(true);//now frame will be visible, by default not visible |
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
#usage | |
# ./findfz directory filefilter searchWord [searchWord2] [searchWord3] [searchWord4] | |
import glob | |
import sys | |
directory = "." | |
fileFilter = "*.*" | |
if len(sys.argv) > 3: |
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
/** | |
* Binary Tree | |
* (c) 2014 Ben Lesh <[email protected]> | |
* MIT license | |
*/ | |
/* | |
* A simple Binary Tree implementation in JavaScript | |
*/ |
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 <windows.h> | |
#include <conio.h> | |
#include <string.h> | |
void print_at_xy(int x, int y, char *val); | |
void display_score(); | |
void init(); | |
int zero_lives(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Books</title> | |
</head> | |
<body> | |
<?php | |
$servername = "localhost"; | |
$username = "bpdemo"; | |
$password = "bpdemo"; |
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 <windows.h> | |
#include <conio.h> | |
#include <string.h> | |
void print_at_xy(int x, int y, char *val); | |
void display_score(); | |
void init(); | |
int zero_lives(); |
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 <windows.h> | |
#include <conio.h> | |
#include <string.h> | |
void print_at_xy(int x, int y, char *val); | |
void display_score(); | |
void init(); | |
int zero_lives(); |