Skip to content

Instantly share code, notes, and snippets.

volkanozcan2

Block or report user

Report or block volkanozcan2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@volkanozcan2
volkanozcan2 / arraybuffer.js
Created Jul 3, 2019
arraybuffer to base64 for images etc..
View arraybuffer.js
'data:image/jpeg;base64,' + btoa(String.fromCharCode(...new Uint8Array(arrayBuffer)
@volkanozcan2
volkanozcan2 / coin_toss.py
Created Apr 15, 2019
lambda function for coin count.
View coin_toss.py
import numpy as np
coin_toss=lambda n=1:n if np.random.rand()<0.5 else coin_toss(n+1)
View Welcome file.md

demo

import math
import numpy as np
from scipy import constants as cons

$$\large t_{' }=\frac{t^{}}{\sqrt{1-\frac{V^2}{c^2}}}$$

@volkanozcan2
volkanozcan2 / index.html
Created Aug 23, 2018
to ivan.popelyshev
View index.html
<div id="myContainer"></div>
@volkanozcan2
volkanozcan2 / index.html
Created Aug 21, 2018
to ivan.popelyshev
View index.html
<div id="myContainer"></div>
@volkanozcan2
volkanozcan2 / src.js
Last active May 7, 2018
pixi:template
View src.js
$(document).ready(onReady)
window.onresize = resize;
let opts = {
transparent: false,
backgroundColor: 0x49DCB1,
resolution: 1,
antialias: 0,
autoResize: true,
forceCanvas: false,
clearBeforeRender: true
@volkanozcan2
volkanozcan2 / primeImage.py
Created Jan 27, 2018
image from prime numbers
View primeImage.py
import numpy as np
import time
import primesieve
from PIL import Image
# t is time in seconds
#fps is videos frame rate
t=30
fps=30
@volkanozcan2
volkanozcan2 / collatz.js
Last active Dec 17, 2017
Collatz conjecture
View collatz.js
function Collatz(n) {
console.log(n);
if (n == 1) {
return false;
}
if (n % 2 == 0) {
Collatz(n / 2);
} else {
Collatz(3 * n + 1);
}
View rnd.js
sıfat = ["bir", "çok", "daha", "var", "her", "iki", "büyük", "iyi", "yeni", "başka", "orta", "bütün", "böyle", "aynı", "ilk", "ön", "önemli", "alt", "ğer", "doğru", "tüm", "az", "bazı", "küçük", "fazla", "güzel", "biraz", "tek", "birlikte", "genç", "uzun", "hiçbir", "üç", "tam", "ilgili", "eski", "yakın", "özel", "pek", "gerek", "yüksek", "geri", "farklı", "gelen", "birkaç", "açık", "tabi", "ikinci", "geçen", "kısa", "kolay", "uzak", "uygun", "kötü", "mümkün", "on", "üst", "sürekli", "çeşitli", "belli", "ayrı", "yalnız", "yavaş", "gerekli", "yanlış", "art", "doğal", "ekonomik", "genel", "dört", "beş", "geniş", "sağ", "sıcak", "ağır", "eş", "sol", "birinci", "hoş", "ünlü", "beyaz", "öte", "hızlı", "çoğu", "kimi", "ince", "kaç", "herhangi bir", "değişik", "asıl", "güçlü", "uç", "sevgili", "cid", "derin", "soğuk", "canlı", "yaşlı", "boş", "başarılı", "birer", "her şey", "ait", "normal", "kırmızı", "hazır", "yarı", "yeterli", "karanlık", "sosyal", "rahat", "gizli", "benzer", "yeşil", "üçüncü", "ilginç", "uluslara
@volkanozcan2
volkanozcan2 / btc Wallet.ipynb
Last active Nov 20, 2017
Python code to generate public private keys for btc addresses .
View btc Wallet.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.