Skip to content

Instantly share code, notes, and snippets.

View 0x254's full-sized avatar
🌴
On vacation

x254 0x254

🌴
On vacation
View GitHub Profile
@0x254
0x254 / README.md
Created October 1, 2017 09:18 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@0x254
0x254 / README-Template.md
Created October 1, 2017 09:20 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@0x254
0x254 / shell.c
Created November 4, 2017 17:06 — forked from parse/shell.c
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>
@0x254
0x254 / LICENCE SUBLIME TEXT
Created November 9, 2017 12:15
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
https://coggle.it/diagram/WiZDg7EWPgABAnwh
@0x254
0x254 / imgui_node_graph_test.cpp
Created January 1, 2018 09:29 — forked from ocornut/imgui_node_graph_test.cpp
Node graph editor basic demo for ImGui
// Creating a node graph editor for ImGui
// Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff.
// Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// See https://github.com/ocornut/imgui/issues/306
// v0.02
// Animated gif: https://cloud.githubusercontent.com/assets/8225057/9472357/c0263c04-4b4c-11e5-9fdf-2cd4f33f6582.gif
// NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h"
// Here we only declare simple +/- operators so others don't leak into the demo code.
static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x+rhs.x, lhs.y+rhs.y); }

Keybase proof

I hereby claim:

  • I am mosesthipparthi on github.
  • I am themoses (https://keybase.io/themoses) on keybase.
  • I have a public key ASBaYypUo06kHDfSr53mhCha233-paGtJHpxe4kALmTjeAo

To claim this, I am signing this object:

@0x254
0x254 / README.md
Created June 30, 2018 03:24 — forked from potch/README.md
JSON Style Sheets. Because why not.

JSS: JSON Style Sheets

“Wait, what?”

Sometimes you want to include some CSS in a JavaScript file. Maybe it's a standalone widget. A big ol' string is a pain to manage, and won't minify so pretty. Especially if you want your CSS safely namespaced. For example:

.widget {
    background: #abc123;
    width: 100px;

/* ... */

@0x254
0x254 / Free O'Reilly Books.md
Created August 25, 2018 14:39 — forked from ellerbrock/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@0x254
0x254 / UFDS.cpp
Created August 25, 2018 16:06 — forked from kodekracker/UFDS.cpp
C++ class of UFDS(Union-Find Disjoint Sets)
/*
Author : Akshay Pratap Singh
Email-Id : pratapakshay0@gmail.com
*/
/******** Union-Find Disjoint Set Implementation *****/
class UFDS {
private:
vector<int> p, rank, setSizes;
int numSets;