Skip to content

Instantly share code, notes, and snippets.

@lancegliser
lancegliser / typescriptDebouncedOnChangeImplementation.tsx
Created November 4, 2021 14:50
Provides a lodash debounced based implementation of an onChange handler to update state with full Typescript support
import React, {
useState,
useEffect,
ChangeEvent,
useMemo,
ChangeEventHandler,
} from "react";
import { TextField } from "@material-ui/core";
import { debounce } from "lodash";
@dannguyen
dannguyen / schemacrawler-sqlite-macos-howto.md
Last active June 30, 2024 18:52
How to use schemacrawler to generate schema diagrams for SQLite from the commandline (Mac OS)
@lucasw
lucasw / doom_compile_linux.md
Last active September 8, 2023 01:13
Compile Doom on Linux

Anything on github?

The original Id software release is there, but no dos version because of a sound library issue. (Why not release dos source without sound?

This is still under development, try it out:

https://sourceforge.net/projects/prboom-plus/

Where can I checkout the source code?

@p2or
p2or / blender-filebrowser-display-override.py
Last active May 21, 2023 18:07
Override File Browser Display Settings (http://blender.stackexchange.com/q/23159/3710) #Blender #BSE
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@tracker1
tracker1 / 01-directory-structure.md
Last active November 8, 2024 21:10
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
'''
BEGIN GPL LICENSE BLOCK
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@ackintosh
ackintosh / gist:5791383
Created June 16, 2013 08:25
DFS Algorithm in PHP
<?php
class Node
{
public $name;
public $linked = array();
public function __construct($name)
{
$this->name = $name;
@douglas-vaz
douglas-vaz / graph_search.cpp
Created March 2, 2013 19:57
Breadth First Search and Depth First Search in C++
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
class Node{
@gre
gre / easing.js
Last active October 30, 2024 16:49
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@thinkphp
thinkphp / gist:1439637
Created December 6, 2011 19:45
Breadth-First Traversal.php
/**
* Breadth-First Traversal of a Binary Tree in PHP
* by Adrian Statescu <[email protected]>
* MIT Style License
*/
class Node {
public $info;
public $left;
public $right;