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
MacBook-Pro:cmdfm-test emiralp$ git pull
Updating bb515ec..5345e55
Fast-forward
package.json | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
MacBook-Pro:cmdfm-test emiralp$ npm install
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
[
{
"port": {
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
"arrival_ports": [
{
@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
@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 / 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 / Initing anywhere
Created September 11, 2014 05:32
IDO - Form Template and JS Scope
<ticket-form formtype="outer"></ticket-form>
@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 / 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">

USERS

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

username_or_email (Required)

'use strict';
/* Directives */
angular.module('myApp.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};