Skip to content

Instantly share code, notes, and snippets.

View usirin's full-sized avatar

Umut Sirin usirin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am usirin on github.
  • I am umut (https://keybase.io/umut) on keybase.
  • I have a public key ASDuPmKKQqqh0k6ZqzwHT5vsKs50u3F29PRccsLiPLk_MAo

To claim this, I am signing this object:

@usirin
usirin / starter.html
Last active July 10, 2016 17:25 — forked from WebStormWeb/gist:2016353
HTML 5 Starter
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>New HTML5 Starter</title>
<!-- <link rel="stylesheet" media="screen" href="/style.css"> -->
</head>
<body>
</body>
@usirin
usirin / increase-video-speed.js
Created September 30, 2016 18:25
Bookmarklets
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t)
@usirin
usirin / myHash.java
Last active December 31, 2016 13:53 — forked from anonymous/myHash
HashTable implementation
package myHashTable;
import java.util.Arrays;
public class myHash {
private int capacity;
private double max_load_factor;
private int resize_factor = 2;
private int search_limit = 0;
private int probing_type;
package myHashTable;
import java.util.Arrays;
public class assignment {
public static void main(String[] args) {
// keys to add
int[] keys = {517, 492, 27, 116, 132, 30, 552, 725, 627, 192};
System.out.println("Keys to Add: " + Arrays.toString(keys));
// HASH TABLE PROPERTIES
@usirin
usirin / atom-keybinding.cson
Created March 23, 2017 17:23
Atom keybindings
# normal mode
'atom-text-editor.vim-mode-plus.normal-mode':
', a': 'editor:toggle-line-comments'
', e v': 'settings-view:install-packager-and-theme'
':': 'vim-mode-plus-ex-mode:open'
';': 'vim-mode-plus-ex-mode:open'
'!': 'vim-mode-plus-ex-mode:toggle-setting'
'g f': 'open-this:here'
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t)
@usirin
usirin / semantic-theme.js
Created October 5, 2017 17:52
Semantic variables as a js object
import * as polished from 'polished'
import range from 'lodash.range'
const unit = (value, type) => `${value}${type}`
const relative = value => unit(value, 'em')
const absolute = value => unit(value, 'rem')
const lighten = (val, percent) => polished.lighten(percent / 100, val)
const darken = (val, percent) => polished.darken(percent / 100, val)
const saturate = (val, percent) => polished.saturate(percent / 100, val)
const rgba = (r, g, b, a) => `rgba(${r}, ${g}, ${b}, ${a})`
@usirin
usirin / atom-snippets.cson
Created January 5, 2018 01:08
Atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#