Skip to content

Instantly share code, notes, and snippets.

View jnv's full-sized avatar

Jan Vlnas jnv

View GitHub Profile
@jnv
jnv / wordcount.js
Last active October 26, 2018 10:49
BakeryJS Example Component (wordcount)
const {boxFactory} = require('bakeryjs');
module.exports = boxFactory(
// name
'wordcount',
// metadata
{
provides: ['words'],
requires: ['text'],
emits: [],
@jnv
jnv / SBKS_CLA.md
Last active August 6, 2018 12:53 — forked from vorcigernix/cla.html
Socialbakers CLA

Fiduciary License Agreement 2.0

based on the

Individual Contributor exclusive License Agreement (including the Traditional Patent License OPTION)

Thank you for your interest in contributing to Socialbakers's Socialbakers Open Community ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at ____________________.

@jnv
jnv / fbai_copy_likes.user.js
Last active November 6, 2017 14:28
[Facebook Audience Insights: Copy Page Likes] #sb #userscripts
// ==UserScript==
// @id fbaicopylikes@jnv.github.io
// @name Facebook Audience Insights: Copy Page Likes
// @namespace https://jnv.github.io
// @version 2017.10.11
// @description Copy Page Likes table in Facebook Audience Insights
// @author Jan Vlnas
// @match https://www.facebook.com/ads/audience-insights/*
// @grant GM_setClipboard
// @run-at document-idle
@jnv
jnv / gist:7fbcd91e1ec0b525c56312e18ac9f4b5
Created September 8, 2017 09:46 — forked from karlwestin/gist:3487951
Handlebars logging - tips for debugging templates!
/*
* Use this to turn on logging: (in your local extensions file)
*/
Handlebars.logger.log = function(level) {
if(level >= Handlebars.logger.level) {
console.log.apply(console, [].concat(["Handlebars: "], _.toArray(arguments)));
}
};
// DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3,
@jnv
jnv / Gemfile
Created September 17, 2013 23:04
trello2github: A hacky and awful Trello cards to GitHub Issues import. Imports Trello color labels and cards' lists as labels, skips archived cards.
source "https://rubygems.org"
gem "octokit", "~> 2.0"
gem "json"
gem "recursive-open-struct"
#!/usr/bin/env ruby
require 'csv-diff'
require 'pp'
file1 = ARGV[0]
file2 = ARGV[1]
IGNORE = ['created_at', 'updated_at', 'deleted_at']
COMMON_PARAMS = {
ignore_moves: true,
@jnv
jnv / .gitignore
Last active March 23, 2017 13:29
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
// ==UserScript==
// @name Reveal and Copy Steam Keys
// @namespace http://jnv.github.io
// @include https://www.bundlestars.com/*/orders/*
// @version 1
// @grant none
// @domain www.bundlestars.com
// @run-at document-idle
// ==/UserScript==

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jnv
jnv / Gemfile
Created October 10, 2016 21:48
Mass management of Instapaper articles in Ruby
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'instapaper', '~> 1.0.0.pre3'