Skip to content

Instantly share code, notes, and snippets.

View ancienthero's full-sized avatar

Paweł Hajduk ancienthero

  • Front-end engineer
  • Krakow, Poland
View GitHub Profile
@ancienthero
ancienthero / example.scss
Created May 1, 2018 12:48
BEM block example
@include critical() {
.c-barchart-button {
$b: #{&};
display: inline-block;
padding: 5px;
user-select: none;
&:hover {
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ancienthero
ancienthero / espruino command-line tool log
Last active November 20, 2017 20:30
espruino command line tool
➜ ~ espruino
Espruino Command-line Tool 0.0.35
-----------------------------------
/usr/local/lib/node_modules/espruino/bin/espruino-cli.js:567
throw new Error("No Ports Found");
^
Error: No Ports Found
at /usr/local/lib/node_modules/espruino/bin/espruino-cli.js:567:17
@ancienthero
ancienthero / espruino-cli install log
Last active November 20, 2017 20:35
espruino-cli log
npm i -g espruino-cli
/usr/local/bin/esp -> /usr/local/lib/node_modules/espruino-cli/bin/esp.js
> serialport@1.2.5 install /usr/local/lib/node_modules/espruino-cli/node_modules/serialport
> node-gyp rebuild
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../src/serialport.cpp:3:
../src/serialport.h:30:34: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
v8::Handle<v8::Value> List(const v8::Arguments& args);
@ancienthero
ancienthero / webpack.config.js
Created November 8, 2017 18:29
Sample webpack 2 config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : false,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"