Skip to content

Instantly share code, notes, and snippets.

View alpay's full-sized avatar
👨‍💻
Working hard

Alpay Can ŞENER alpay

👨‍💻
Working hard
View GitHub Profile
@alpay
alpay / semanticVersioningConversion.java
Last active July 22, 2018 12:56 — forked from dislick/semanticVersioningConversion.js
Convert Semantic Versioning String to 32-Bit Integer in Java
/**
* This algorithm originally written by Patrick Muff (dislick) for JS ES6.
* https://gist.github.com/dislick/914e67444f8f71df3900bd77ccec6091
*/
/**
* Convert a semantic versioning string into a 32-bit integer.
*
* Make sure the input string is compatible with the standard found
* at semver.org. Since this only uses 10-bit per major/minor/patch version,
@alpay
alpay / app.yaml
Created August 27, 2018 11:22 — forked from addyosmani/app.yaml
Google App Engine (Python) - app.yaml for hosting a static site
application: your-app-name
version: 1
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "30d"
handlers:
# web files
@alpay
alpay / terminal_gist1.md
Last active December 16, 2018 13:32
Finding Case-Insensitive Duplicates

Finding Case-Insensitive Duplicates

This will give you a list of duplicate lines which you can then investigate further.

tr 'A-Z' 'a-z' < filename | sort | uniq -d


  • Example Data File: numbers.txt