Skip to content

Instantly share code, notes, and snippets.

@mehmetbebek
mehmetbebek / search_file_content.java
Created April 1, 2014 13:26
Search Text File Content From Any Giving Directory
import java.awt.FileDialog;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.*;
@roachhd
roachhd / README.md
Created December 8, 2014 23:09
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet

@kylemcdonald
kylemcdonald / convert.py
Last active May 25, 2024 19:24
Scrape ShaderToy. Instead of running this, consider downloading the files from here: https://goo.gl/MWGvkL Or if you want to do more work with ShaderToy data, consider using their API https://www.shadertoy.com/api
# !/usr/bin/env python
import os, re, argparse, json
parser = argparse.ArgumentParser(
description='Extract code from ShaderToy json.')
parser.add_argument('input')
parser.add_argument('output')
args = parser.parse_args()
@bitwes
bitwes / sample_command_line.gd
Created November 28, 2015 19:09
Robust command line argument parsing in Godot
# Example of a script that can be run from the command line and parses out options. This is adapted
# from the Gut command line interface. The first 2 classes are not to be used directly, they are used
# by the Options class and can be ignored. Start reading after the Options class to get a feel for
# how it is used, then work backwards.
#
# This could be easily extracted out into a class itself, but in the interest of how it is being used
# I wanted it all in one file. It is yours to do with what you please, but if you make something out
# of it, I'd love to hear about it. I'm bitwes on godot forums, github, and bitbucket.
extends SceneTree
@iamgreaser
iamgreaser / psxviewer.c
Created August 19, 2017 00:31
THPS2 model viewer - quick release 1
/*
THPS2 level viewer
quick release 1
by GreaseMonkey, 2017 - Public Domain
takes two args
first arg is the main model (e.g. skhan.psx, skhan_o.psx)
second arg is the texture lib (e.g. skhan_l.psx)
needs SDL2 and OpenGL
@mylamour
mylamour / GoogleHackMasterList.txt
Created February 2, 2018 05:26 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@fnky
fnky / ANSI.md
Last active July 22, 2024 12:03
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@jarmitage
jarmitage / tidal-hydra.js
Last active May 26, 2023 07:04
Drawing Tidal sounds in Atom-Hydra
// see tidal example: https://github.com/ojack/hydra-examples
p1.remove()
p1 = new P5()
p1.pixelDensity(1)
msg.setPort(3333)
tidalHistory = 128
tidal = []
sounds = {'s':[], 'c':[]}
// http://www.iquilezles.org/www/articles/palettes/palettes.htm
// to see this function graphed out go to: https://www.desmos.com/calculator/18rq4ybrru
vec3 cosPalette( float t , vec3 brightness, vec3 contrast, vec3 osc, vec3 phase)
{
return brightness + contrast*cos( 6.28318*(osc*t+phase) );
}
vec3 hsb2rgb(vec3 c)
{
# its dependencies are gifsicle and ffmpeg
gifify() {
if [[ -n "$1" ]]; then # if the input lengt≈h is non-zero
randomPlace=0 #lazy, i use it for filename regurdless if its needed or not
if [[ $2 != '--random' && $3 != '--random' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
else
#s=$(ffprobe -i $1 -show_entries format=duration -v quiet -of csv="p=0")
s=$(ffprobe -i $1 -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1)
seconds=$(echo "$s - 2" | bc)