Skip to content

Instantly share code, notes, and snippets.

View usirin's full-sized avatar

Umut Sirin usirin

View GitHub Profile
@usirin
usirin / html5TagSyntax.bnf
Last active May 20, 2018 19:46 — forked from tkqubo/html5TagSyntax.bnf
EBNF notation for HTML5 tag syntax
tag-open := '<' tag-name ws* attr-list? ws* '>'
tag-empty := '<' tag-name ws* attr-list? ws* '/>'
tag-close := '</' tag-name ws* '>'
attr-list := (ws+ attr)*
attr := attr-empty | attr-unquoted | attr-single-quoted | attr-double-quoted
attr-empty := attr-name
attr-unquoted := attr-name ws* = ws* attr-unquoted-value
@usirin
usirin / delete_all_object_versions.sh
Created May 10, 2018 02:13 — forked from weavenet/delete_all_object_versions.sh
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
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 / 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;
@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 / tmux.md
Created September 29, 2015 09:29 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@usirin
usirin / reset.css
Created May 28, 2012 01:16
CSS: reset.css
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ul, li,
form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
@usirin
usirin / gist:2816626
Created May 28, 2012 01:11 — forked from smonteverdi/gist:1993724
HTML: HTML5 Starter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTML5 Starter</title>
<link rel="stylesheet" href="" type="text/css" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>