Skip to content

Instantly share code, notes, and snippets.

View lezi's full-sized avatar
:octocat:

Osvaldo Júnior "mwanalezi" lezi

:octocat:
View GitHub Profile
@lezi
lezi / install-tensorflow-using-anaconda.md
Created April 22, 2020 19:56 — forked from johndpope/install-tensorflow-using-anaconda.md
Create a virtual environment using Anaconda and install various ML tools and TensorFlow
@lezi
lezi / paisesPortuguesIngles.sql
Created September 20, 2016 13:51 — forked from thiagosilr/paisesPortuguesIngles.sql
Tabela MYSQL com o nome de todos os países em Português / Inglês
--
-- Estrutura da tabela `pais`
--
CREATE TABLE IF NOT EXISTS `pais` (
`paisId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`paisNome` varchar(50) NOT NULL,
`paisName` varchar(50) NOT NULL,
PRIMARY KEY (`paisId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ;
EditableValueHolder evh = (EditableValueHolder) this.uiInput;
evh.resetValue();
FacesContext ctx = FacesContext.getCurrentInstance();
List<String> clientIds = Lists.newArrayList("form:input1", "form:input2");
UIViewRoot view = ctx.getViewRoot();
view.resetValues(ctx, clientIds); // reseta os componentes da lista
@lezi
lezi / gist:5e838912de94d5acb259
Created December 25, 2015 11:17 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
/**
*
* Hooking up Watchify with Google's Web Starter Kit
*
* The primary use cases for Browserify/Watchify are:
* - Node.js-style `require`s on the client-side
* - Use of npm modules on the client-side
* - No more new <script> tags for each new script/module
*
* 1. npm install --save-dev vinyl-source-stream browserify watchify gulp-notify
@lezi
lezi / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@lezi
lezi / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
<div class="social">
<span class="twitter">
<a href="http://twitter.com/share" class="twitter-share-button" data-url="[your-url-here]">Tweet</a>
</span>
<span class="google">
<g:plusone size="medium" href="[your-url-here]"></g:plusone>
</span>
<span class="Facebook">
<iframe src="https://www.facebook.com/plugins/like.php?href=[your-url-here]&amp;show_faces=false&amp;layout=button_count" scrolling="no" frameborder="0" style="height: 21px; width: 100px" allowTransparency="true"></iframe>
</span>