Skip to content

Instantly share code, notes, and snippets.

View Serrin's full-sized avatar

Ferenc Czigler Serrin

  • The Walt Disney Company
  • Budapest
  • 05:19 (UTC +01:00)
View GitHub Profile
@Serrin
Serrin / html-languages.txt
Created July 6, 2021 14:57 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@Serrin
Serrin / javascript-query-string.js
Created June 7, 2021 11:19 — forked from DavidWells/javascript-query-string.js
JavaScript :: Regex trick: Parse a query string into an object
// http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/
// JavaScript regex trick: Parse a query string into an object
var queryString = {};
anchor.href.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function($0, $1, $2, $3) { queryString[$1] = $3; }
);
// Usage
@Serrin
Serrin / alias.bat.md
Created March 20, 2021 17:04 — forked from MohannadNaj/alias.bat.md
My windows aliases list.

My windows aliases list.

Installation

1- Attaching Aliases to the native command line:

Steps in this stackoverflow answer.Quoting:

you may make the alias(es) persistent with the following steps,

@Serrin
Serrin / markdown-details-collapsible.md
Created March 9, 2021 18:38 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@Serrin
Serrin / punctuation.js
Created January 6, 2021 10:13 — forked from davidjrice/punctuation.js
List of punctuation characters
var PUNCTUATION = "" +
"’'" + // apostrophe
"()[]{}<>" + // brackets
":" + // colon
"," + // comma
"‒–—―" + // dashes
"…" + // ellipsis
"!" + // exclamation mark
"." + // full stop/period
"«»" + // guillemets
@Serrin
Serrin / offline_mdn_docs.md
Created December 2, 2020 08:47 — forked from zed-dz/offline_mdn_docs.md
Offline MDN Docs
@Serrin
Serrin / html
Last active November 20, 2020 17:35 — forked from maxdenaro/html
HTML Email Template
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>HTML Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
width: 100% !important;
@Serrin
Serrin / linebreak.md
Created November 11, 2020 12:08
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


@Serrin
Serrin / javascript.translit.js
Created October 22, 2020 18:45 — forked from croisillon/javascript.translit.js
JavaScript translater russian to translit
function rus_to_latin ( str ) {
var ru = {
'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd',
'е': 'e', 'ё': 'e', 'ж': 'j', 'з': 'z', 'и': 'i',
'к': 'k', 'л': 'l', 'м': 'm', 'н': 'n', 'о': 'o',
'п': 'p', 'р': 'r', 'с': 's', 'т': 't', 'у': 'u',
'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', 'ш': 'sh',
'щ': 'shch', 'ы': 'y', 'э': 'e', 'ю': 'u', 'я': 'ya'
}, n_str = [];
"use strict";
// PHP function array() implemantation in JS
// https://gist.github.com/Serrin/a8f336f486b6a8a6288197c8aa9ebbc8
// ES5
//function array () { return Array.prototype.slice.call(arguments); }
// ES6
const array = (...a) => a;