Skip to content

Instantly share code, notes, and snippets.

View burakozturk16's full-sized avatar
💻

Burak Öztürk burakozturk16

💻
  • Senior Software Development Engineer
  • Bursa
View GitHub Profile
mkdir src
echo '{
"name": "webpack_babel_react_boilerplate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack serve --mode development --hot --open",
"build": "webpack --config webpack.config.js --mode production"
@burakozturk16
burakozturk16 / nodereinstall.sh
Created October 21, 2021 01:01 — forked from brock/nodereinstall.sh
Complete Node Reinstall. I've moved this to a repo at http://git.io/node-reinstall
#!/bin/bash
# node-reinstall
# credit: http://stackoverflow.com/a/11178106/2083544
## program version
VERSION="0.0.13"
## path prefix
PREFIX="${PREFIX:-/usr/local}"
@burakozturk16
burakozturk16 / function_cache.js
Created October 20, 2021 09:33
Javascript function cache
const memoize = (fn) => {
let cache = {};
return (...args) => {
let n = fn(...args);
if (n in cache) {
console.log('Result from cache', cache[n]);
return cache[n];
}
def main(nums):
numCount = len(nums) # 4
arr = list(nums) # [3, 1, 4, 2]
for i in range(1,numCount):
arr[i] = min(nums[i-1], arr[i-1])
j = numCount
for i in range(numCount)[::-1]:
if nums[i] <= arr[i]:
/*
This is a test prototype coding for planning a react event-bus system
*/
class eventBus {
static on(event, callback) {
document.addEventListener(event, (e) => callback(e.detail));
}
static dispatch(event, data) {
@burakozturk16
burakozturk16 / WebGL-WebGPU-frameworks-libraries.md
Created April 15, 2021 23:22 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library
<?php
/*
(2014) Main source -> http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/
I just managed to sniff Instagram traffic and fixed the code
-- Have fun - batuhan.org - Batuhan Katırcı
--- for your questions, comment @ http://batuhan.org/instagram-photo-upload-with-php/