Skip to content

Instantly share code, notes, and snippets.

View chyngyz's full-sized avatar

Chyngyz Arystan chyngyz

View GitHub Profile
@chyngyz
chyngyz / entypo.css
Last active August 29, 2015 14:11 — forked from pnull/entypo.css
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@chyngyz
chyngyz / Default.sublime-keymap
Created February 15, 2015 14:16
Sublime keymap for switching between Insert and Command Modes ("ii")
[
// vintage - mode control
// exit insert mode
{ "keys": ["i", "i"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
@chyngyz
chyngyz / index.html
Last active August 29, 2015 14:16
SVG Sprite Sample
<svg display="none">
<defs>
<path id="icon-rss" d="M16 0q6.6 0 11.3 4.7t4.7 11.3q0 6.6-4.7 11.3t-11.3 4.7-11.3-4.7-4.7-11.3 4.7-11.3 11.3-4.7zM10.7 24q1.1 0 1.9-0.8t0.8-1.9-0.8-1.9-1.9-0.8-1.9 0.8-0.8 1.9 0.8 1.9 1.9 0.8zM16.7 24h3.3q0-5-3.5-8.5t-8.5-3.5v3.3q3.6 0 6.1 2.5t2.5 6.1zM22.7 24h3.3q0-3.7-1.4-7t-3.8-5.7-5.7-3.8-7-1.4v3.3q6.1 0 10.4 4.3t4.3 10.4z"></path>
<path id="icon-twitter" d="M16 0q6.6 0 11.3 4.7t4.7 11.3-4.7 11.3-11.3 4.7-11.3-4.7-4.7-11.3 4.7-11.3 11.3-4.7zM25.7 12.5q1.2-0.9 2.3-2.3-1.3 0.6-2.6 0.7 1.4-0.8 2-2.5-1.4 0.8-2.9 1.1-1.3-1.4-3.3-1.4-1.9 0-3.2 1.3t-1.3 3.2q0 0.6 0.1 1-5.7-0.3-9.4-4.8-0.6 1.1-0.6 2.3 0 2.4 2 3.8-1 0-2-0.6v0q0 1.6 1 2.9t2.6 1.6q-0.5 0.1-1.2 0.1-0.3 0-0.9-0.1 0.4 1.4 1.6 2.2t2.6 0.9q-2.6 2.1-5.6 2.1-0.4 0-1.1-0.1 3.1 2 7 2 3 0 5.5-1.2t4.1-3.1 2.4-4.1 0.9-4.6v-0.6z"></path>
<path id="icon-github" d="M16 0q6.59 0 11.3 4.7t4.7 11.3q0 5.52-3.39 9.85t-8.61 5.67v-4.18q0-2.89-1.67-4.18 3.37-0.52 5.52-2.41t2.15-4.74q0-2.52-1.85-4.59 0.67-3.07-0.15-4.74-2.04 0.19-
@chyngyz
chyngyz / Tarify
Last active September 29, 2015 15:14
<div class="container">
{% block breadcrumbs %}
<div class="row">
<ul class="breadcrumb">
<li><a href="/">{% trans 'Home' %}</a></li>
<li><a href="#">{% trans 'Library' %}</a></li>
<li class="active">{% trans 'Data' %}</li>
</ul>
</div>
<div class="container">
{% block breadcrumbs %}
<div class="row">
<ul class="breadcrumb">
<li><a href="/">{% trans 'Home' %}</a></li>
<li><a href="#">{% trans 'Library' %}</a></li>
<li class="active">{% trans 'Data' %}</li>
</ul>
</div>
<div class="container">
{% block breadcrumbs %}
<div class="row">
<ul class="breadcrumb">
<li><a href="/">{% trans 'Home' %}</a></li>
<li><a href="#">{% trans 'Library' %}</a></li>
<li class="active">{% trans 'Data' %}</li>
</ul>
</div>
@chyngyz
chyngyz / angularjs-modals.htm
Created November 30, 2015 04:50 — forked from bennadel/angularjs-modals.htm
Creating A Simple Modal System In AngularJS
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Creating A Simple Modal System In AngularJS
</title>
<link rel="stylesheet" type="text/css" href="./demo.css"></link>
@chyngyz
chyngyz / gist:21eca59186e650900f3f
Created December 24, 2015 04:17 — forked from alexcrown/gist:089971889fda0ca4e7b1
Jasig CAS auth in angular webapp
$scope.login = function () {
$http({ // getting TGT (Ticket Granting Ticket)
method: 'POST',
url: 'http://localhost/cas/v1/tickets',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
data: $.param({username: $scope.loginform.username, password: $scope.loginform.password})
}).success(function(data, status, headers) {
// CAS returns location where we can request service ticket
var location = headers('Location');
$http({ //requesting service ticket, rest/app/heartbeat is part of our app
@chyngyz
chyngyz / gist:cef75aed65432b714960
Last active February 16, 2016 13:36
Mouse Scroll Icon
@-webkit-keyframes mouse-wheel {
0% {
-webkit-transform: scaleY(.4)translateY();
transform: scaleY(.4)translateY();
}
20% {
-webkit-transform: scaleY(1)translateY();
transform: scaleY(1)translateY();
}
60% {
@chyngyz
chyngyz / gist:07b6a228e20413a94ff9
Last active February 22, 2016 04:31
Gulpfile.js
'use strict';
var gulp = require('gulp');
var notify = require("gulp-notify");
var Path = {
rootDir: 'dev',
rootDist: 'dist',
staticJs: 'dev/js',
staticCSS: 'dev/styles',