Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
On Earth

Ömer Ufuk Efendioğlu ufukomer

🌍
On Earth
View GitHub Profile
@ufukomer
ufukomer / problems.md
Last active Sep 15, 2017
Some shitty problems that occur while developing
View problems.md
View regexp.txt
[^] -> 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 Apr 18, 2019
Docker commands
View docker.md

Start/Remove all containers

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

Docker container ip

@ufukomer
ufukomer / .block
Created Jul 27, 2016 — forked from mbostock/.block
Line Transition
View .block
license: gpl-3.0
@ufukomer
ufukomer / webpackconfig.js
Created Apr 27, 2016
Webpack font loader pattern.
View webpackconfig.js
var config = {
entry: './app.js',
output: {
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.css$/,
loader: 'style!css?sourceMap'
}, {
View compass-font-files-example.scss
// 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 Apr 17, 2017
Issues during the development.
View qbloomy
./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 Dec 1, 2015
Sublime Text 2 - Useful Shortcuts
View gist:041bc8aa9303c8aa3e83

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
View git-commands.md

Clone respotory to your pc

$ git clone 'ssh clone url'

Push

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