Skip to content

Instantly share code, notes, and snippets.

View tonda13's full-sized avatar

Antonín Neumann tonda13

View GitHub Profile
@tonda13
tonda13 / file.js
Last active May 12, 2020 07:56 — forked from alisterlf/gist:3490957
JS Remove Accents
function RemoveAccents(strAccents) {
var strAccents = strAccents.split('');
var strAccentsOut = new Array();
var strAccentsLen = strAccents.length;
var accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž';
var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz";
for (var y = 0; y < strAccentsLen; y++) {
if (accents.indexOf(strAccents[y]) != -1) {
strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1);
} else
@tonda13
tonda13 / README.md
Last active September 12, 2019 10:49 — forked from alixaxel/unresponsive.css
Bootstrap Unresponsive Override

Here's a CSS-only solution:

  • makes .container 970px wide (default)
  • translates col-sm-, col-md-, col-lg-* to col-xs-*
  • translates col-sm-offset-, col-md-offset-, col-lg-offset-* to col-xs-offset-*
  • unhides .hidden-xs, .hidden-sm, .visible-xs[-] and .visible-sm[-] (new in 3.2.0)
  • makes navbar unresponsive
  • unlike Javascript overrides, preserves original .col-xs-* columns when toggled off

All you have to do is add link this CSS file and the class unresponsive to the `` tag.

@tonda13
tonda13 / avatar.js
Last active March 15, 2019 18:40 — forked from jcsrb/gist:1081548
Get avatar from google profiles, facebook, gravatar, twitter, tumblr
function get_avatar_from_service(service, userid, size) {
// this return the url that redirects to the according user image/avatar/profile picture
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px )
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word )
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px )
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word )
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px )
// everything else will go to the fallback
// google and gravatar scale the avatar to any site, others will guided to the next best version
@tonda13
tonda13 / doc_block.php
Created May 3, 2018 18:34 — forked from BaylorRae/doc_block.php
Parse PHP Doc Blocks
<?php
class DocBlock {
public $docblock,
$description = null,
$all_params = array();
/**
* Parses a docblock;

Workshop - tvorba apliakce krok za krokem

Struktura nodejs aplikace (projektu)

/my-project          # kořenový adresář apliakce
  node_modules/      # adresář s nainstalovanými third-party moduly
  application.js           # soubor s naší aplikací