Skip to content

Instantly share code, notes, and snippets.

View controllers.application.js
import Ember from 'ember';
const { isBlank } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
names: ['one', 'two', 'three', 'four'],
});
@Macxim
Macxim / index.js
Created Nov 6, 2017
Web scrapping paginated web page with Nightmare.js
View index.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');
View gist:4f2fa1b5e82a0a2431e71e82e64e2187
Verifying that "macxim.id" is my Blockstack ID. https://onename.com/macxim
View f1-drivers.json
{
"drivers": [
{
"name": "Vettel",
"surname": "Sebastian",
"ranking": 1,
"points": 392,
"lastRace": 2,
"wins": 11,
"poles": 15,
View .editorconfig
# 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
View alphabetizeArray.js
var moonWalkers = [
"Neil Armstrong",
"Buzz Aldrin",
"Pete Conrad",
"Alan Bean",
"Alan Shepard",
"Edgar Mitchell",
"David Scott",
"James Irwin",
"John Young",
@Macxim
Macxim / gulpfile.js
Created Mar 27, 2015
gulp task SVG symbols
View gulpfile.js
// 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 () {
@Macxim
Macxim / gist:f361d1feef60418e99c9
Created Nov 13, 2014
Error cssnext _autoprefixerDisabled
View gist:f361d1feef60418e99c9
[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)
View @font-face_syntax.css
/* @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 / flags.scss
Last active Dec 18, 2015
This is a .scss module file for a sprite with all member states of the European Union.
View flags.scss
// 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{