Skip to content

Instantly share code, notes, and snippets.

André Lima andreloty

  • HBSIS
  • Blumenau, SC - Brasil
Block or report user

Report or block andreloty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andreloty
andreloty / gist:16a8a285e784a9c476c7db47f6239e6b
Created Feb 23, 2018
layout.vash com script conectando com o socket.io
View gist:16a8a285e784a9c476c7db47f6239e6b
<!DOCTYPE html>
<html>
<head>
<meta>
<title>@model.title</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
View gist:5a8fa7b5256ed2dfd05c941c4d44fbec
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app')
var debug = require('debug')('knex:server')
var http = require('http')
View gist:5c2152b1f87ac7e569a781d95bd51d9d
// set reloadify
if (process.env.NODE_ENV !== 'prodution') {
var reloadify = require('reloadify')([
__dirname + '/views',
__dirname + '/public',
])
app.use(reloadify)
}
View gist:931d80540f2acff69058d00f3b03e56b
var cleanText = $('#summernote').data().summernote.code()
.replace(/<\/p>/gi, "\n")
.replace(/<br\/?>/gi, "\n")
.replace(/<\/?[^>]+(>|$)/g, "")
View editied_preset.json
{
"black": "#002b36",
"dark_blue": "#81A2BE",
"dark_green": "#01e327",
"dark_cyan": "#81d6ff",
"dark_red": "#dc322f",
"dark_magenta": "#d33682",
"dark_yellow": "#b58900",
"gray": "#eee8d5",
"dark_gray": "#019393",
@andreloty
andreloty / hotfix.txt
Last active Feb 13, 2016
Hotfix instalation npm
View hotfix.txt
echo prefix = ~/.node >> ~/.npmrc
export PATH=$HOME/.node/bin:$PATH
You can’t perform that action at this time.