Skip to content

Instantly share code, notes, and snippets.

View eser's full-sized avatar
🎙️
Streaming on YouTube - https://eser.live

Eser Ozvataf eser

🎙️
Streaming on YouTube - https://eser.live
View GitHub Profile
@pazguille
pazguille / rsc.jsx
Last active April 11, 2024 05:35
Deno + RSC
// deno run --allow-net rsc.jsx
// deno run --allow-net https://gist.githubusercontent.com/pazguille/a2e3792c1901e12e67453ccb19cc0da6/raw/752200e809993fd2176381b7b09d8308dca6d069/rsc.jsx
import { serve } from 'https://deno.land/std/http/server.ts';
import React, { Suspense } from "https://esm.sh/[email protected]";
import ReactDOMServer from 'https://esm.sh/[email protected]/server';
import ReactServerDOMServer from 'https://esm.sh/[email protected]/server.browser';
import ReactServerDOMClient from 'https://esm.sh/[email protected]/client';
function Hello({ name }) {
@tbranyen
tbranyen / concept.js
Last active August 28, 2017 11:40
DOM Diffing Specification Concept
// Create virtual document and documentElement.
const vdoc = document.createVirtualDocument();
const root = vdoc.createDocumentElement('html');
// <template/> tags should be able to be converted as well.
const someTemplate = document.querySelector('template#some-template');
// Add some SVG.
root.appendChild(vdoc.createElement({
nodeName: 'svg',
namespaceURI: 'http://www.w3.org/2000/svg',
class MiddlewareProxyHandler {
constructor() {
this.middlewares = [];
// this.ignoredKeys = [ 'meta' ];
}
addMiddleware(obj) {
this.middlewares.push(obj);
}
apt-get update
apt-get upgrade
apt-get install sudo git build-essential htop apt-transport-https ca-certificates curl gnupg2 software-properties-common # python-software-properties
# apt-get install openjdk-7-jre
# user
useradd -s /bin/bash -m -d /home/eserozvataf -c "eser ozvataf" -g staff eserozvataf
gpasswd -a eserozvataf sudo
echo "AllowGroups sudo" >> /etc/ssh/sshd_config
passwd eserozvataf
@eser
eser / Markdown Extended.sublime-settings
Last active January 11, 2016 13:30
My Sublime Text 3 user configuration
{
"extensions":
[
"md"
],
"color_scheme": "Packages/Theme - Afterglow/Afterglow-markdown.tmTheme",
"draw_centered": true,
"draw_indent_guides": false,
"trim_trailing_white_space_on_save": false,
"word_wrap": true,
@v0lkan
v0lkan / ozgurluk.md
Last active December 25, 2023 12:27
Ozgur Kaynak Projelerine Nasil Katkida Bulunabilirim

Ozgur Kaynak Projelerine Nasil Katkida Bulunabilirim

Ozgur kaynakli projelere destek olmak, bir yazilimcinin kendini gelistirmesi, kariyerinde ilerlemesi, ve daha da onemlisi baskalarina yardimci olabilmeleri ve topluluga katki saglamalari acisindan gercekten cok onemli.

Girecegin is mulakatlarinin hatri sayilir bir oraninda ozgur kaynakli kodlarin, yan projelerin, ve is disinda kendini gelistirmek icin neler yaptigin hakkinda konusuyor olacaksin – En azindan Silikon Vadisi'nde durum boyle.

Yeni teknolojiler ogrenmekten, daha once tanimadigin onlarca insanla iletisim kurmak; kendini ve yazdigin kodu tum dunyanin gozleri onune sermek biraz urkutucu olabilse de, sana cok sey katacaktir.

Bu dokumanda konuyla ilgili aklima gelenleri paylasiyorum. Eminim gozumden kacan seyler olacak. Eklemek istediklerini, gorus, dusunce, onerileri, ve yorumlarini ekle.

@ozselgin
ozselgin / mathjaxexample.html
Last active December 15, 2015 04:09
Basic mathjax example. LaTeX is used. Basit mathjax örneği. LaTeX notasyonu kullanıldı.
<html>
<head>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head>
<body>
<ol>
<li>
\[
\frac{8 \sqrt{6}}{2 \sqrt{3}}
=
@sgmurphy
sgmurphy / url_slug.php
Created July 12, 2012 15:52
URL Slugs in PHP (with UTF-8 and Transliteration Support)
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <[email protected]>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.
@jonsuh
jonsuh / js-video-basic.css
Last active June 8, 2019 17:06
Responsive YouTube, Vimeo, Embed, and HTML5 Videos with CSS Usage
.js-video {
height: 0;
padding-top: 25px;
padding-bottom: 67.5%;
margin-bottom: 10px;
position: relative;
overflow: hidden;
}
.js-video.widescreen {
ar http = require('http');
var fs = require('fs');
var util = require('util');
var fileCache;
var sendFile = function(conn, file) {
conn.writeHead(200, {"Content-Type": "text/html", "Content-Length": file.length});
conn.write(file);
conn.end();
}