Skip to content

Instantly share code, notes, and snippets.

View msikma's full-sized avatar
๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ

Michiel Sikma msikma

๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ
View GitHub Profile
var fs = require('fs');
var fse = require('fs-extra');
var path = require('path');
var mkdirp = require('mkdirp');
// The file we'll write the stats to.
var deployPath = path.resolve(__dirname, '../../../deploy/');
var filepath = deployPath + '/.webpack-stats.json';
@msikma
msikma / cli.c
Created September 27, 2015 11:41
Command line arguments
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
int a, b, len, chr;
for (a = 1; a < argc; ++a) {
@msikma
msikma / test.c
Created September 27, 2015 11:11
// small test (compiled with DJGPP for MSDOS)
#include <stdio.h>
int main(int argc, char *argv[])
{
int a;
char *arg;
if (argc == 0) {
@msikma
msikma / lines.c
Created September 20, 2015 15:24
/** file 1: lines.c */
/**************************************************************************
* lines.c *
* written by David Brackeen *
* http://www.brackeen.com/home/vga/ *
* *
* Tab stops are set to 2. *
@msikma
msikma / es6-styles.js
Created July 22, 2015 11:38
Which of these styles is nicer?
/**
* Returns server environment information and copyright. This is intended
* only to be displayed inside of a terminal.
*
* @returns {String} Copyright and server environment information
*/
function getServerInfo() {
const engineName = process.title == 'node' ? 'Node.js'
: process.title == 'iojs' ? 'io.js' : '(unknown engine)';
const engineVersion = process.title + ' v' + process.versions.node;
@msikma
msikma / SassMeister-input.scss
Created June 23, 2015 14:42
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Hide My Ass <https://www.hidemyass.com/>
// Copyright (C) 2005-2015, Privax Ltd.
$payments: "avangate_bank", "avangate_cashu", "avangate_webmoney", "avangate_qiwi", "avangate_boleto",
"avangate_sofort", "avangate_cc", "adyen_cc", "adyen_ideal", "onebip", "mopay", "bitpay", "paypal";
@msikma
msikma / rfc5646-language-tags.js
Created February 26, 2015 13:51
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
@msikma
msikma / SassMeister-input.scss
Created February 7, 2015 19:36
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
@mixin pulsate($animation-name, $start-size: 0.75, $end-size: 1, $duration: 1.5s) {
@keyframes #{$animation-name} {
0% { transform: scale($start-size); }
50% { transform: scale($end-size); }
100% { transform: scale($start-size); }
}
@msikma
msikma / jscs-without-es6-jsx.js
Created January 14, 2015 23:27
jscs configuration that excludes es6/jsx
// JSCS - for testing code style.
jscs: {
options: {
config: 'jscs.json',
},
gruntfile: {
src: ['gruntfile.js']
},
// es6 and jsx are not testable yet.
src: {
@msikma
msikma / all_countries.json
Created January 13, 2015 09:56
List of all countries โ€“ as per ISO 3166-1, up-to-date as of 2015-01-13
{
"AT": "Austria",
"BE": "Belgium",
"BG": "Bulgaria",
"HR": "Croatia",
"CY": "Cyprus",
"CZ": "Czech Republic",
"DK": "Denmark",
"EE": "Estonia",
"FI": "Finland",