Skip to content

Instantly share code, notes, and snippets.

View ufukomer's full-sized avatar
🌍
On Earth

ufukomer

🌍
On Earth
View GitHub Profile
@ufukomer
ufukomer / ISO3166-1.alpha2.json
Created November 1, 2021 11:17 — forked from ssskip/ISO3166-1.alpha2.json
json of country codes (ISO 3166-1 alpha-2) and corresponding names
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
@ufukomer
ufukomer / problems.md
Last active September 15, 2017 08:42
Some shitty problems that occur while developing
@ufukomer
ufukomer / regexp.txt
Created February 21, 2017 15:35
Regexp notes
[^] -> any character that is not in the empty set of characters
. -> any number of non-newline characters
(+, *, ?, and {}) -> Greedy
(+?, *?, ??, {}?) -> Nongreedy
\b -> word boundary
\w -> alpha numerical [A-Za-z0-9_]
\d -> number
\s -> single white space
@ufukomer
ufukomer / docker.md
Last active April 18, 2019 06:05
Docker commands

Start/Remove all containers

$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)

Docker container ip

@ufukomer
ufukomer / .block
Created July 27, 2016 09:58 — forked from mbostock/.block
Line Transition
license: gpl-3.0
@ufukomer
ufukomer / webpackconfig.js
Created April 27, 2016 18:25
Webpack font loader pattern.
var config = {
entry: './app.js',
output: {
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.css$/,
loader: 'style!css?sourceMap'
}, {
// 1. Put yout fonts in the compiled folder of your projec. Ex.: www.yoursite.com/css/fonts/
// 2. To enable relative paths to assets via compass helper functions on config.rb uncomment relative_assets = true
// Import the Compass Font Face module
@import "compass/css3/font-face";
// regular
@include font-face('cabin',
font-files(
'Cabin-Regular-webfont.woff', woff,
@ufukomer
ufukomer / qbloomy
Last active April 17, 2017 13:32
Issues during the development.
./mysql -u root -p
Change admin password of MySQL server:
UPDATE mysql.user SET Password=PASSWORD('root') WHERE User='root'; FLUSH PRIVILEGES;
Duration
http://codepen.io/ufukomer/pen/yePazw
@ufukomer
ufukomer / gist:041bc8aa9303c8aa3e83
Created December 1, 2015 05:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@ufukomer
ufukomer / git-commands.md
Last active July 7, 2020 11:08
Git Commands

Clone respotory to your pc

$ git clone 'ssh clone url'

Push

$ git add .
$ git commit -m "Your message"
$ git push -u origin master