Skip to content

Instantly share code, notes, and snippets.

View hayatbiralem's full-sized avatar

Ömür Yanıkoğlu hayatbiralem

View GitHub Profile
@hayatbiralem
hayatbiralem / log-function-for-chrome-console.js
Created November 6, 2015 13:42
Log function for Chrome Console
var debug = true;
var log = function(type){ debug && window.console && console[( type in console ? type : 'log' )].apply(console, Array.prototype.slice.call(arguments, ( type in console ? 1 : 0 ))); };
@hayatbiralem
hayatbiralem / docker-checkout.sh
Last active February 22, 2016 08:58
Helper shell scripts for Docker
# Usage: bash path/to/bash/scripts/docker-checkout.sh app_name
prefix="/Users/omuryanikoglu/Docker/apps/"
suffix="/app"
directory="$prefix$1$suffix"
if [ -d "$directory" ]; then
echo "App directory exists!"
docker-compose stop
cd $directory
@hayatbiralem
hayatbiralem / SassMeister-input-HTML.html
Created July 13, 2016 15:35 — forked from mmintel/SassMeister-input-HTML.html
Generated by SassMeister.com.
<div class="class">asd</div>
<form class="modal-form ajax-form form-horizontal form-new-address" action="//www.barcin.com/address" method="post" >
<div class="form-group">
<div class="col-xs-12">
<label class="control-label required" for="address_title">Adres Tanımı (Ev, İş, Okul)</label>
<input type="text" id="address_title" name="address[title]" required="required" maxlength="30" pattern=".{2,}" class="form-control form-control" />
</div>
</div>
html
{
font-family:sans-serif;
-ms-text-size-adjust:100%;
-webkit-text-size-adjust:100%;
-webkit-font-smoothing:antialiased!important;
-ms-overflow-style:scrollbar;
overflow-y:scroll\9
}
@hayatbiralem
hayatbiralem / multiple-maps-on-bp.js
Last active September 27, 2016 08:53
Multiple Maps on BP
function BPMap(id, options){
if(!BPMap.googleMapsLoaded()) { return; }
options = options || {};
if(!id || !options.lat || !options.lng) return;
options.latlong = {lat: options.lat, lng: options.lng};
options.zoom = options.zoom || 17;
options.type = options.type || 'roadmap';
options.title = options.title || 'Konumum';
options.content = options.content || false;
var map = new google.maps.Map(document.getElementById(id), {center: options.latlong, zoom: options.zoom, streetViewControl: false, panControl: false, mapTypeId: options.type, mapTypeControl: false, zoomControlOptions: {position: google.maps.ControlPosition.LEFT_CENTER}});
@hayatbiralem
hayatbiralem / change-extension-script.sh
Last active October 2, 2016 21:00
Bash script for change file extensions in a directory
#!/bin/bash
# https://github.com/Microsoft/TypeScript/issues/2302#issuecomment-144959412
find . -name "*.js" -exec bash -c 'mv "$1" "$(sed "s/\.js$/.ts/" <<< "$1")"' - '{}' \;
@hayatbiralem
hayatbiralem / SassMeister-input-HTML.html
Last active November 9, 2016 15:16
[utilities.spacing] improve list definitions and let vertical/horizontal directions
For this issue: https://github.com/inuitcss/inuitcss/issues/228
@hayatbiralem
hayatbiralem / ContextCmder-Disable.reg
Created January 19, 2017 10:25 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@hayatbiralem
hayatbiralem / urunler.xml
Last active November 22, 2017 13:07
Temp
This file has been truncated, but you can view the full file.
[
{
"sku":"BL00001-R01",
"store_view_code":"",
"attribute_set_code":"Default",
"product_type":"",
"categories":"Default Category/BİLEKLİK",
"product_websites":"base",
"name":"BL00001-R01",
"short_description":"",