Skip to content

Instantly share code, notes, and snippets.

View idkiller's full-sized avatar

pius lee idkiller

  • Samsung Electronics
  • Korea Suwon
View GitHub Profile
@idkiller
idkiller / GLSL-Noise.md
Created July 15, 2024 03:11 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@idkiller
idkiller / dns_sniff.py
Last active May 12, 2020 04:00
python mDNS / DNS-SD sniff tool (Parsing DNS-SD packet!)
# -*- coding: utf-8 -*-
import socket
import struct
from time import gmtime, strftime
import re
#import binascii
import string
class packetSniff():
class BlarEvent
{
Type Type;
int Prop1;
double Prop2;
}
class FoobarEventArgs : EventArgs
{
public BlarEvent Arg { get; set; }
@idkiller
idkiller / foobar.cpp
Created December 13, 2019 08:23
hashtestable
void pushToTable(struct Member *target;)
{
int key = target->code % 2000;
struct Member *here = NULL;
here = mTable[key];
if (here == NULL)
{
mTable[key] = target;
class DynamicAccessor
{
object obj;
public Func<object, object> Getter;
public Action<object, object> Setter;
public DynamicAccessor(object obj, string propertyName)
{
this.obj = obj;
DynamicMethod getter = new DynamicMethod("getter",typeof(object), new Type[] { typeof(object) });
#define DEBUG
#ifdef DEBUG
#include <stdio.h>
#endif // DEBUG
template<typename T, bool C(T, T)>
class PriorityQue {
public:
PriorityQue() : PriorityQue(0) {}
const RAD = Math.PI / 180;
function bound(x: number, y: number, w: number, h: number, deg: number) {
const rcos = Math.cos(deg * RAD);
const rsin = Math.sin(deg * RAD);
let left = 0;
let top = 0;
let right = 0;
let bottom = 0;
yarn run v1.15.2
$ vue-cli-service electron:build
INFO Bundling render process:
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ERROR Failed to compile with 50 errors08:42:22
error in /blarblar/node_modules/konva/types/index-types.d.ts
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
import {fabric} from 'fabric';
declare module 'fabric' {
namespace fabric {
interface Object {
id: string;
depth?: number;
formulaX?: string;
formulaY?: string;
formulaWidth?: string;