Skip to content

Instantly share code, notes, and snippets.

@shyiko
shyiko / for_each.c
Created February 9, 2019 04:46 — forked from pancurster/for_each.c
for_each in C
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#define for_each(i, list) \
for(i = list; \
i != NULL; \
i = i->next)
struct lista {
@shyiko
shyiko / google_font_downloader
Created October 22, 2016 07:54 — forked from jakeg/google_font_downloader
Download all Google fonts using sensible FVD-style names
/*
Script to download all google fonts and name them with FVD-based filenames
- e.g. Rock_Salt.n4.ttf, Open_Sans.i7.ttf
*/
var https = require('https');
var http = require('http');
var fs = require('fs');
var async = require('async');
var key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // google fonts api server-only key