Skip to content

Instantly share code, notes, and snippets.

View fguisso's full-sized avatar
🌭
Hot dogs

Fernando Guisso fguisso

🌭
Hot dogs
View GitHub Profile
ERROR in ./src/components/App.js
Module not found: Error: Can't resolve 'classnames' in '/Users/fguisso/Documents/Github/front-myaccount/src/components'
@ ./src/components/App.js 51:18-39
@ ./src/routes.js
@ ./src/client.js
@ multi (webpack)-dev-server/client?http://localhost:8000 webpack/hot/dev-server webpack-dev-server/client?http://0.0.0.0:8000/ webpack/hot/only-dev-server react-hot-loader/patch ./client.js
ERROR in ./src/components/common/header/HeaderComponent.jsx
Module not found: Error: Can't resolve 'classnames' in '/Users/fguisso/Documents/Github/front-myaccount/src/components/common/header'
@ ./src/components/common/header/HeaderComponent.jsx 95:18-39
@fguisso
fguisso / Teste
Last active February 27, 2020 22:22 — forked from anonymous/Teste
var express = require('express');
var test = express();
var port = process.env.PORT || 8080;
//routes
test.get('/api/users', function(req, res){
var user_id = req.param('id');
var token = req.param('token');
var geo = req.param('geo');
@fguisso
fguisso / config.yml
Created September 4, 2017 17:51
.circleci config
version: 2
jobs:
build:
working_directory: ~/dev
docker:
- image: circleci/node:latest
steps:
- checkout
- run:
name: update-npm
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"EditorConfig",
"HTML5",
"Insert Nums",
@fguisso
fguisso / fixdata.js
Created June 30, 2017 14:36
fix data from FileReader()
function fixdata (data) {
let o = ''
let l = 0
const w = 10240
for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)))
o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)))
return o
}

How to pollyfill webpack + karma:

npm i -save babel-polyfill Modify "karma.conf.js" (line 17):

files: ['./index.js'],
files: ['../../node_modules/babel-polyfill/dist/polyfill.js','./index.js'],

Modify "webpack.base.config.js" (line 12):

@fguisso
fguisso / birobiro.zsh-theme
Created June 16, 2017 14:57
oh-my-zsh theme and libs
# ZSH Theme, bira custom, add node version by fernandoguisso
# Bira Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}'
local user_symbol='#'
else
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
@fguisso
fguisso / Dockerfile
Created June 13, 2017 23:52
express-hello-world
FROM node:alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN npm install
EXPOSE 8080
CMD [ "npm", "start" ]
@fguisso
fguisso / funny.md
Last active August 14, 2025 12:03
Funny initial commit messages

Funny initial commit messages

This is where it all begins...
Commit committed
Version control is awful
COMMIT ALL THE FILES!
The same thing we do every night, Pinky - try to take over the world!
Lock S-foils in attack position
This commit is a lie
I'll explain when you're older!
<template>
<div class="hello">
<img v-bind:src="logoPath">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>