Skip to content

Instantly share code, notes, and snippets.

Ionuț Colceriu ghinda

Block or report user

Report or block ghinda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ghinda / index.html
Last active Mar 4, 2020
Gorgias Templates CRM plugin
View index.html
<meta charset="utf-8">
<textarea cols="100" rows="10"></textarea>
Test variable support with this template:

Keybase proof

I hereby claim:

  • I am ghinda on github.
  • I am ghinda ( on keybase.
  • I have a public key ASAOWAnaZwcwDPMwiniaFlTwbK_TNgvVZ4M9RYqgYOVH7wo

To claim this, I am signing this object:

ghinda / test.html
Created May 18, 2016
ghinda / test.css
Last active May 18, 2016
View test.css
body {
background: 'hotpink'
ghinda / responsive-tables.js
Created Apr 12, 2015
ZURB responsive-tables, patched for better performance
View responsive-tables.js
/* ZURB responsive tables, patched for performance.
* patched for better performance when reading the TR>TD height,
* by getting the height directly from the TR, instead of TR>TD.
* USE:
* - include the responsive-tables.css file from
* - include this js file, instead of responsive-tables.js
ghinda /
Last active Mar 10, 2020
git csv export of commits in the last month
git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv
ghinda /
Created Mar 19, 2015
Delete all local tracking git branches for which the origin remote branches have been deleted
git for-each-ref --format='%(refname:short)' refs/heads/* | while read branch; do BRANCH_EXISTS=$( git ls-remote --heads origin $branch | wc -l ); if [ $BRANCH_EXISTS -eq 0 ]; then git branch -D $branch; fi;done
ghinda / object-to-form-data.js
Last active Mar 17, 2020
JavaScript Object to FormData, with support for nested objects, arrays and File objects. Includes Angular.js usage.
View object-to-form-data.js
// takes a {} object and returns a FormData object
var objectToFormData = function(obj, form, namespace) {
var fd = form || new FormData();
var formKey;
for(var property in obj) {
if(obj.hasOwnProperty(property)) {
if(namespace) {
ghinda / favicon-convert
Created Oct 6, 2013
Generate favicon from png with imagemagick
View favicon-convert
$convert favicon.png -bordercolor white -border 0 \
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
\( -clone 0 -resize 64x64 \) \
-delete 0 -alpha off -colors 256 favicon.ico
ghinda / gist:6036998
Last active Mar 28, 2019 — forked from remy/gist:350433
local/session storage polyfill (@Rem's version + with support for opera mini)
View gist:6036998
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
expires = "; expires="+date.toGMTString();
You can’t perform that action at this time.