Skip to content

Instantly share code, notes, and snippets.

[
{"code":"ab","name":"Abkhaz","nativeName":"аҧсуа","dir":"ltr"},
{"code":"aa","name":"Afar","nativeName":"Afaraf","dir":"ltr"},
{"code":"af","name":"Afrikaans","nativeName":"Afrikaans","dir":"ltr"},
{"code":"ak","name":"Akan","nativeName":"Akan","dir":"ltr"},
{"code":"sq","name":"Albanian","nativeName":"Shqip","dir":"ltr"},
{"code":"am","name":"Amharic","nativeName":"አማርኛ","dir":"ltr"},
{"code":"ar","name":"Arabic","nativeName":"العربية","dir":"ltr"},
{"code":"an","name":"Aragonese","nativeName":"Aragonés","dir":"ltr"},
{"code":"hy","name":"Armenian","nativeName":"Հայերեն","dir":"ltr"},
@dgrammatiko
dgrammatiko / fix.sh
Created August 18, 2016 16:21 — forked from kopiro/fix.sh
Solve `/dev/tty/ bug in Tower / GIT UI when signing commits with GPG
echo 'no-tty' >> ~/.gnupg/gpg.conf
@dgrammatiko
dgrammatiko / osx-for-hackers.sh
Created August 22, 2016 11:09 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@dgrammatiko
dgrammatiko / fiddle.css
Created October 14, 2016 18:46 — forked from scopevale/fiddle.css
jsFiddle demo - Table Sort (vanilla JS)
table {
border: solid 1px #fc0;
border-collapse: collapse;
}
table caption {
font-weight: bold;
font-size: 125%;
text-transform: uppercase;
}
// Comment out libraries/cms/html/email.php @102-103
// libraries/cms/html/email.php @104
// JHtml::_('script', 'system/emailcloak.js', false, true);
// return '<span class="js-email-cloak" data-before="' . $mail[0] . '" data-after="' . $mail[1] . '">' . JText::_('JLIB_HTML_CLOAKING') . '</span>';
// media/system/js/emailcloak.js
(function() {
document.addEventListener('DOMContentLoaded', function() {
// Get all emails that need cloaking
(function () {
var ElementPrototype = Object.create(HTMLElement.prototype);
// Lifecycle methods
ElementPrototype.createdCallback = function () {
};
<element name="bsasce-alert">
<script>
(function () {
var ElementPrototype = Object.create(HTMLElement.prototype);
// Lifecycle methods
ElementPrototype.createdCallback = function () {
};
(function() {
// Creates an object based in the HTML Element prototype
var element = Object.create(HTMLElement.prototype);
// Fires when an instance of the element is created
element.createdCallback = function() {};
// Fires when an instance was inserted into the document
element.attachedCallback = function() {};
/**
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
!(function(window, document){
'use strict';
/** Method to convert numbers to local symbols. */
Date.convertNumbers = function(str) {
var str = str.toString();
{
"alignleft": {
"selector": "p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",
"classes": "left"
},
"aligncenter": {
"selector": "p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",
"classes": "center"
},
"alignright": {