Skip to content

Instantly share code, notes, and snippets.

View keriati's full-sized avatar
👨‍💻
Working...

Attila Kerekes keriati

👨‍💻
Working...
View GitHub Profile
@keriati
keriati / API.md
Created September 7, 2012 18:13 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@keriati
keriati / module.html
Created September 9, 2012 18:51
Module pattern ...
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
@keriati
keriati / objects.js
Created October 10, 2012 08:52
Javascript Objects
(function () {
var NS = NS || {};
NS.SomeObject = (function () {
var defaults = {
a: "A"
}
function Constr(options) {
@keriati
keriati / gist:4284294
Created December 14, 2012 10:18
Android tools
// Check how the APK is signed
jarsigner -verify -verbose -certs myapk.apk
@keriati
keriati / headings.js
Last active December 11, 2015 14:09
List all Headings on a Page to the console.
(function(){$('h1,h2,h3,h4,h5').each(function(){var t=$(this),n=t[0].tagName,i=parseInt(new String(n).substr(1,1));console.log(new Array(i).join(' ')+n+': '+t.text().replace(/\s{2,}/g,' '));});})();
@keriati
keriati / addjquery.js
Created February 12, 2013 18:06
Bookmark content to add jQuery to current document. Put after "javascript:"
(function(){if(!window.jQuery){var s=document.createElement('script'), d = document.body;s.src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js';d.appendChild(s);}else{console.log('jQuery found!')}})();
@keriati
keriati / encodeDecode.php
Last active December 13, 2015 16:49
Test of the encoding and decoding function found in fliphole.php
<?php
/**
* Encodes or Decodes some string
*
* @param string $string The string to encode or the string to decode
* @param string $secretkey The key to encode or decode with
*/
function encodeDecode($string, $secretkey) {
@keriati
keriati / inherigame.html
Last active December 14, 2015 11:39
Prototypal Inheritance in JavaScript
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
if (typeof Object.create === 'undefined') {
@keriati
keriati / watch-large.js
Created September 2, 2013 19:25
Youtube "large" mode bookmark for every screen size
javascript: (function() {var vid = document.getElementById('player'); vid.className = vid.className + " watch-large";})()
@keriati
keriati / config.json
Last active August 29, 2015 13:57
wienerz bootstrap config
{
"vars": {
"@gray-darker": "#000",
"@gray-dark": "#1a171b",
"@gray": "lighten(@gray-dark, 33.5%)",
"@gray-light": "lighten(@gray-dark, 60%)",
"@gray-lighter": "lighten(@gray-dark, 93.5%)",
"@brand-primary": "#df0b25",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",