Skip to content

Instantly share code, notes, and snippets.

View emiralp's full-sized avatar
🌴
On vacation

Emir Alp emiralp

🌴
On vacation
View GitHub Profile
@emiralp
emiralp / gist:5108438
Created March 7, 2013 14:33
Fixing indentations
<%= form_for(@comment) do |f| %>
<% if @comment.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2>
<ul>
<% @comment.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
'use strict';
/* Directives */
angular.module('myApp.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};

USERS

/api/users/sign_up
	username				(Required)
	email					(Required)
	password				(Required)
	password_confirmation	(Required)
	
/api/users/sign_in

username_or_email (Required)

@emiralp
emiralp / ticket_form.html
Created September 10, 2014 14:52
IDO - TICKET FORM
<div class="n-aside n-light" >
<div class="home-tabs-holder" ng-if="formtype == 'outer'">
<ul class="lists home-tabs">
<li ng-class="{'active':(timetableQueryForm == false)}"><a href="#" ng-click="ticketFormTabClick(true);"><i class="icon-ticket"></i> <span translate="BUY_TICKET">Bilet Al</span></a></li>
<li ng-class="{'active':(timetableQueryForm == true)}"><a href="#" ng-click="ticketFormTabClick(false);"><i class="icon-map"></i><span translate="TIMETABLES_H">Sefer Sorgulama</span></a> </li>
<li><a ng-href="{{'_SLUG_CARRENTAL'|translate}}"><i class="icon-transportation-car"></i><span translate="CARRENTAL">Araç Kiralama</span></a> </li>
</ul>
</div>
<div class="aside-inner">
@emiralp
emiralp / Anywhere in templates
Created September 10, 2014 16:25
IDO - Ticket Form Template and JS Scope
<!-- You can call ticketForm directive from anywhere -->
<ticket-form formtype="outer"></ticket-form>
@emiralp
emiralp / Initing anywhere
Created September 11, 2014 05:32
IDO - Form Template and JS Scope
<ticket-form formtype="outer"></ticket-form>
@emiralp
emiralp / megamenu.html
Last active August 29, 2015 14:06
File parts of '/templates/m' route. 'megamenu.html' is the successful return of '/templates/m' route.
<div class="mega-container" ng-show="activeMegaMenu" ng-mouseleave="hideMegaMenu()" ng-mouseenter="lockMegaMenu()" ng-click="hideMegaMenu()">
<div class="megamenu-wrapper megamenu-animation" ng-show="activeMegaMenu == 1">
<div class="container">
<div class="row">
<div class="col-sm-3 mm-col mm-col-nohover mm-br">
@emiralp
emiralp / gist:010e3cc7119ab4a39d4b
Last active March 12, 2018 10:33
cmd.fm api v.1 (beta)

USERS

/api/users/sign_up
	username				(Required)
	email					(Required)
	password				(Required)
	password_confirmation	(Required)
	
/api/users/sign_in

username_or_email (Required)

@emiralp
emiralp / gist:31f821ae10b8213f01fc
Created November 11, 2014 14:39
cmd.fm ios app promo codes
App Store Promo Codes:
A6FFLX6E96A3
TT6JJLLPH6H9
MMRXLXR4APTY
YFJ6WMF6PAYH
XTRRHY77YMMY
9P3W7TFNAKJW
YTRPE7JLMPYL
TJ7F4YA4K4H9