Skip to content

Instantly share code, notes, and snippets.

@nicoknoll
nicoknoll / i.md
Created January 28, 2015 19:26
Convert pdf to ppt on mac an linux

In case you want to convert your PT readings from PPT(X) to PDF it's really easy:

  1. Download libreoffice: https://de.libreoffice.org/

If you own an linux you can use the following command:

$ libreoffice --headless --invisible --convert-to pdf --outdir /Users/Nico/Desktop/pt /Users/Nico/Desktop/pt/*.pptx

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@gaearon
gaearon / ClassNameMixin.js
Last active March 23, 2018 17:18
BEM in React
'use strict';
var React = require('react'),
classSet = require('react/lib/cx'),
_ = require('underscore');
var ClassNameMixin = {
propTypes: {
className: React.PropTypes.string,
context: React.PropTypes.string
@matiaskorhonen
matiaskorhonen / kippt-pinboard.rb
Created August 23, 2014 10:20
A simple script for copying bookmarks from Kippt to Pinboard. Tries to retain as much data as possible (title, list, creation date, and notes). Works for me, might not work for you if you have > 200 clips per Kippt list.
require "kippt" # gem install kippt
require "pinboard" # gem install pinboard
kippt = Kippt::kippt.new(username: "matias", password: "…")
pinboard = Pinboard::kippt.new(username: "matias", password: "…")
lists = kippt.lists.fetch
counter = 0
@willpatera
willpatera / Google-Sheet-Form-Post.md
Last active November 9, 2024 15:22
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

@adrienjoly
adrienjoly / export-unchecked-items-from-wunderlist-json-backup.sh
Last active April 1, 2016 01:31
based on jq command-line json processor
FILENAME=wunderlist-20140714-20-07-39.json
LIST_ID=AB1XAAVtNbA
cat $FILENAME | jq -r ".tasks[] | select(.list_id == \"$LIST_ID\") | select(has(\"completed_at\") == false) | .title"
@freshyill
freshyill / gulpfile.js
Last active May 30, 2018 23:15
Gulp-Pattern Lab Helper
//
// Paths
//
var basePaths = {
src: 'source/',
dest: 'source/'
};
var paths = {
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 25, 2025 20:12
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@jasny
jasny / bootstrap-em.less
Last active January 5, 2020 15:36
Use em or rem font-size in Bootstrap 3
/**
* Use em or rem font-size in Bootstrap 3
*/
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
@craigeley
craigeley / tasks_to_logbook.rb
Last active August 29, 2015 13:57
This script finds TaskPaper items in a specific folder completed with this format: "@done(yyyy-mm-dd HH:MM)", moves and converts them into Sifttter format, and then deletes them.
#!/usr/bin/env ruby
# encoding: utf-8
require 'time'
files = Dir["/Users/USERNAME/Dropbox/Listacular/*.taskpaper"]
projects = []
found_completed = false
files.each do |file|