Skip to content

Instantly share code, notes, and snippets.

@Macxim
Macxim / flags.scss
Last active December 18, 2015 05:19
This is a .scss module file for a sprite with all member states of the European Union.
// Sprite for Flags
// -----------------
// HTML markup is the following
// <i class="flag flag-ireland"></i>
// PNG: http://bit.ly/15TFoM1
// SVG: http://bit.ly/196OmcM
.flag{
/* @font-face: Proxima Nova */
/* Black */
@font-face {
font-family: 'Proxima Nova';
src: url('fonts/ProximaNova-Black-webfont.eot');
src: url('fonts/ProximaNova-Black-webfont.eot?iefix') format('eot'),
url('fonts/ProximaNova-Black-webfont.woff') format('woff'),
url('fonts/ProximaNova-Black-webfont.ttf') format('truetype'),
@Macxim
Macxim / gist:f361d1feef60418e99c9
Created November 13, 2014 22:57
Error cssnext _autoprefixerDisabled
[23:49:49] Using gulpfile ~/Code/macxim.github.com/assets/gulpfile.js
[23:49:49] Starting 'default'...
[23:49:49] Finished 'default' after 57 ms
events.js:72
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property '_autoprefixerDisabled' of undefined
at Processor.disabled (/Users/macuser/Code/macxim.github.com/assets/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/autoprefixer-core/lib/processor.js:133:15)
at Processor.disabled (/Users/macuser/Code/macxim.github.com/assets/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/autoprefixer-core/lib/processor.js:151:50)
@Macxim
Macxim / gulpfile.js
Created March 27, 2015 14:09
gulp task SVG symbols
// See https://github.com/Hiswe/gulp-svg-symbols/
var gulp = require('gulp');
var filter = require('gulp-filter');
var cssFilter = filter('**/*.css');
var svgFilter = filter('**/*.svg');
gulp.task('svgsymbol', function () {
var moonWalkers = [
"Neil Armstrong",
"Buzz Aldrin",
"Pete Conrad",
"Alan Bean",
"Alan Shepard",
"Edgar Mitchell",
"David Scott",
"James Irwin",
"John Young",
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
{
"drivers": [
{
"name": "Vettel",
"surname": "Sebastian",
"ranking": 1,
"points": 392,
"lastRace": 2,
"wins": 11,
"poles": 15,
Verifying that "macxim.id" is my Blockstack ID. https://onename.com/macxim
@Macxim
Macxim / index.js
Created November 6, 2017 13:51
Web scrapping paginated web page with Nightmare.js
/**
* Scrape data from https://london.wtm.com/en/exhibitor-directory-2017/2017-Products
*
* Usage: $ node index.js
*/
var Nightmare = require('nightmare');
var vo = require('vo');
var fs = require('fs');
import Ember from 'ember';
const { isBlank } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
names: ['one', 'two', 'three', 'four'],
});