Skip to content

Instantly share code, notes, and snippets.

View kkga's full-sized avatar
💭
at the movies

Gadzhi Kharkharov kkga

💭
at the movies
View GitHub Profile
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
* { box-sizing: border-box; }
html, body { min-height: 100vh; margin: 0; }
div,
html,
body,
nav,
header,
hgroup,
footer,
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.12.0.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@kkga
kkga / plain.js
Last active March 1, 2022 16:05
snippets of plain js
// document.ready
document.addEventListener("DOMContentLoaded", function() {
// your code
}, false);
// select div
var element = document.querySelector("div");
@kkga
kkga / app.js
Created January 24, 2014 14:59
goodMorning
'use strict';
var app = angular.module('goodMorning', []);
var feedList = [ "http://news.layervault.com/?format=rss", "https://news.ycombinator.com/rss" ];
app.controller("FeedCtrl", ['$scope','FeedService', function ($scope,Feed) {
$scope.showFeeds = function() {
};
@kkga
kkga / app.js
Created November 15, 2013 20:12
move
// a simple fucking view with random color
view = new View ({
x:200,
y:200,
width:300,
height:300,
})
view.style.backgroundColor = utils.randomColor(0.5)
// Structure
// Margins
.no-margin { margin: 0; }
.m1 { margin: 1rem; }
.mt1 { margin-top: 1rem; }
.mr1 { margin-right: 1rem; }