Skip to content

Instantly share code, notes, and snippets.

View vale-c's full-sized avatar
:octocat:

Vale vale-c

:octocat:
View GitHub Profile
@parse
parse / shell.c
Created May 11, 2011 07:31
Simple shell in C
/* Compile with: g++ -Wall –Werror -o shell shell.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 1, 2025 01:48
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@wihoho
wihoho / PriorityQueueUsingHeap.java
Created May 26, 2013 05:04
Implement PriorityQueue using heap
/**
* Created with IntelliJ IDEA.
* User: Gong Li
* Date: 5/26/13
* Time: 12:23 PM
* Implement a priority queue using a heap
* The heap is implemented using an array indexed from 1
*/
public class PriorityQueueUsingHeap<T extends Comparable<T>> {
T[] arr;
@victorreyesh
victorreyesh / Aircrack Commands
Created September 12, 2013 03:36
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
@mycodeschool
mycodeschool / Queue_CircularArrayImplementation.cpp
Last active May 25, 2024 10:46
Queue - Array Implementation
/* Queue - Circular Array implementation in C++*/
#include<iostream>
using namespace std;
#define MAX_SIZE 101 //maximum size of the array that will store Queue.
// Creating a class named Queue.
class Queue
{
private:
int A[MAX_SIZE];
@hofmannsven
hofmannsven / README.md
Last active November 8, 2023 22:49
SCSS Cheatsheet
@mkowoods
mkowoods / merge_sort.py
Created January 26, 2015 18:25
recursive merge sort from scratch
def merge(lhs, rhs):
lhs, rhs = lhs[:], rhs[:]
merged_list = []
while bool(lhs) and bool(rhs):
if lhs[0] <= rhs[0]:
merged_list.append(lhs.pop(0))
else:
merged_list.append(rhs.pop(0))
return merged_list + lhs + rhs
@marcosfdev
marcosfdev / React JS Weather App.markdown
Created November 4, 2015 04:09
React JS Weather App
@a1ip
a1ip / 000_eoc_python_solutions.md
Last active May 2, 2019 07:48
Empire of code Python solutions https://empireofcode.com
@akshaynagpal
akshaynagpal / LinkedList.java
Last active October 2, 2024 08:46
Linked List From Scratch in Java
package src.LinkedList;
public class LinkedList {
public Node head;
public int listCount;
public LinkedList(){
head = new Node(0);
listCount = 0;
}