Skip to content

Instantly share code, notes, and snippets.

View hayatbiralem's full-sized avatar

Ömür Yanıkoğlu hayatbiralem

View GitHub Profile
<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>
@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>
@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 / imagesLoaded.js
Last active November 26, 2015 15:32
Images loaded function without imagesLoaded library
(function($){
var imagesLoaded = function(selector, onComplete, onProgress) {
var $images = $(selector).find('img');
var success = 0;
var error = 0;
var iteration = 0;
var total = $images.length;
var check = function(el, status) {
iteration++;
var data = {
git config --global alias.sync-gh-pages '!git push && git checkout gh-pages && git merge master && git push && git checkout master'
@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 / make-class-list-for-collection.scss
Created April 17, 2014 12:55
Make class list for collection in Sass
$facebook-color : hsla(222, 47%, 40%, 1); // #365397
$twitter-color : hsla(198, 100%, 47%, 1); // #00a9f1
$linkedin-color : hsla(203, 100%, 35%, 1); // #006db3
social-platforms: facebook $facebook-color,
twitter $twitter-color,
linkedin $linkedin-color;
@mixin make-class-list-for-collection($collection, $index: 1, $prefix: "") {
$list: "";
@hayatbiralem
hayatbiralem / add-remove-class-on-event.js
Created April 16, 2014 13:04
Add/Remove class on event helpers
// add/remove class on event helpers
Helper.addClassOnEvent = function(el, ev, cl){
var $el = $(el);
if(!$el.length || !cl || typeof ev !== "string" || typeof cl !== "string") {
return false;
}
$el.each(function(){
// if(!Modernizr.hasEvent(ev, this)){
// return true;
@hayatbiralem
hayatbiralem / jquery-notification-bar-with-cookie.js
Last active August 29, 2015 13:57
jQuery top notification bar with javascript cookies.
<select id="state" class="pure-input-medium" onchange="window.location='../'+this.options[this.selectedIndex].value+'/';">
<option value="en">English</option>
<option value="es">Español</option>
<option value="de">Deutsch</option>
</select>