Skip to content

Instantly share code, notes, and snippets.

Fernando Zamora fernandozamoraj

Block or report user

Report or block fernandozamoraj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RabbitMQ Example in Javascript
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
@fernandozamoraj
fernandozamoraj / PriorityQueue.cpp
Created Mar 31, 2019
Priority queue using heao
View PriorityQueue.cpp
#include<iostream>
#include<string>
using namespace std;
template <class T>
class PriorityQueue{
private:
T *_array;
View valgrind-example-commands.txt
g++ -g -std=c++11 mymain.cpp ./subfolder/myutil.cpp ./subfolder/myutil2.cpp -o myprogram.exe
./myprogram.exe
valgrind ./myprogram.exe
View Simplest Java Drawing Skeleton
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
@fernandozamoraj
fernandozamoraj / findfz.py
Created Dec 10, 2018
This gist is a python script to find text in files in a given directory... useful for searching log files. Grep works better but sometimes not a windows as well
View findfz.py
#usage
# ./findfz directory filefilter searchWord [searchWord2] [searchWord3] [searchWord4]
import glob
import sys
directory = "."
fileFilter = "*.*"
if len(sys.argv) > 3:
@fernandozamoraj
fernandozamoraj / BinaryTree.js
Created Nov 22, 2018 — forked from benlesh/BinaryTree.js
A simple Binary Tree implementation in JavaScript
View BinaryTree.js
/**
* Binary Tree
* (c) 2014 Ben Lesh <ben@benlesh.com>
* MIT license
*/
/*
* A simple Binary Tree implementation in JavaScript
*/
View ninja.c
#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();
View bpdemo-index.php
<!DOCTYPE html>
<html>
<head>
<title>Books</title>
</head>
<body>
<?php
$servername = "localhost";
$username = "bpdemo";
$password = "bpdemo";
View gist:b191005eae5cb1ac9d554385d88f17b0
#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();
View gist:05c6ad533ded5fd6b803df82b8247e61
#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();
You can’t perform that action at this time.