Skip to content

Instantly share code, notes, and snippets.

View canbax's full-sized avatar
👋
hi

Yusuf Canbaz canbax

👋
hi
View GitHub Profile
@bschapendonk
bschapendonk / CreateValidateJWT.cs
Last active October 22, 2023 08:01
How to create and validate a JWT using System.IdentityModel.Tokens.Jwt
using System;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography;
namespace CreateValidateJWT
{
class Program
{
static void Main(string[] args)
@JustMaier
JustMaier / demo.html
Last active March 29, 2022 08:46
Simple copy to clipboard functionality in angular without any dependencies
<!-- View it live here: http://codepen.io/anon/pen/waZOjB -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.4/angular.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/JustMaier/6ef7788709d675bd8230/raw/3d39d50e66d8d77e05656ed7dd09298be7e86f1f/ngClickCopy.js"></script>
<script>
angular.module('app', ['ngClickCopy'])
</script>
<div ng-app="app">
<button ng-click-copy="Hello World">Copy</button>
</div>
@karpathy
karpathy / min-char-rnn.py
Last active May 27, 2024 03:04
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@serong
serong / iller.json
Created April 4, 2015 15:59
JSON formatında Türkiye'nin illeri.
{
"1": "ADANA",
"2": "ADIYAMAN",
"3": "AFYONKARAHİSAR",
"4": "AĞRI",
"5": "AMASYA",
"6": "ANKARA",
"7": "ANTALYA",
"8": "ARTVİN",
"9": "AYDIN",