Skip to content

Instantly share code, notes, and snippets.

View hamitaksln's full-sized avatar

Abdulhamit Akaslan hamitaksln

View GitHub Profile
export default class EventEmitter
{
constructor()
{
this.callbacks = {}
this.callbacks.base = {}
}
on(_names, callback)
{
@crabmusket
crabmusket / README.md
Last active April 16, 2024 10:20
Headless rendering with THREE.js

Headless THREE

Created with

Make sure you install headless-gl's dependencies, then run with XVFB like so:

@omerayyildiz
omerayyildiz / soru-adabı.md
Last active November 28, 2020 12:04
SDT Sunucu Dili Ve Edebiyatı 101

Nasıl Akıllıca Soru Sorulur

Hangi kanala soru soracağınıza iyi karar verin

Sorunuzu nereye soracağınıza iyi karar verin. Şayet aşağıdakileri yaparsanız, dikkate alınmayabilir veya bir zavallı durumuna düşebilirsiniz:

  • Sorunuzu, konu ile alakasız bir kanala göndermek
  • Çok fazla kanala aynı sorudan birçok kere sormak
  • Tanımadığınız veya sizin sorununuzu çözmekle mükellef olmayan birilerine özel ileti göndermek

Üstatlar, kendi iletişim kanallarının allak bullak olmasını önlemek için, konu dışı soruları soranlara hiddetlenirler/köpürürler. Bunun başınıza gelmesini istemezsiniz.

@jimmywarting
jimmywarting / readme.md
Last active July 4, 2024 11:58
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@jamenlyndon
jamenlyndon / iframe.html
Last active May 21, 2024 08:20
Resize iframe height to fit content (works cross domain)
<script type='text/javascript' src="js/jquery.min.js"></script>
<script type='text/javascript'>
// Size the parent iFrame
function iframeResize() {
var height = $('body').outerHeight(); // IMPORTANT: If body's height is set to 100% with CSS this will not work.
parent.postMessage("resize::"+height,"*");
}
$(document).ready(function() {
// Resize iframe
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],