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
ghinda / index.html
Last active Mar 4, 2020
Gorgias Templates CRM plugin
View index.html
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<textarea cols="100" rows="10"></textarea>
<p>
Test variable support with this template:
View keybase.md

Keybase proof

I hereby claim:

  • I am ghinda on github.
  • I am ghinda (https://keybase.io/ghinda) on keybase.
  • I have a public key ASAOWAnaZwcwDPMwiniaFlTwbK_TNgvVZ4M9RYqgYOVH7wo

To claim this, I am signing this object:

@ghinda
ghinda / test.html
Created May 18, 2016
jotted-play-test.html
@ghinda
ghinda / test.css
Last active May 18, 2016
jotted-play-test-css
View test.css
body {
background: 'hotpink'
}
@ghinda
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.
* http://zurb.com/playground/responsive-tables
*
* 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
* https://github.com/zurb/responsive-tables/
* - include this js file, instead of responsive-tables.js
@ghinda
ghinda / git-commit-csv-export.sh
Last active Mar 10, 2020
git csv export of commits in the last month
View git-commit-csv-export.sh
git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv
@ghinda
ghinda / git-delete-local-branches.sh
Created Mar 19, 2015
Delete all local tracking git branches for which the origin remote branches have been deleted
View git-delete-local-branches.sh
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
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
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
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();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
You can’t perform that action at this time.