Skip to content

Instantly share code, notes, and snippets.

@barenko
barenko / ora_Lista_tabelas_filhas.sql
Created June 3, 2009 03:26
LIST ALL CHILDREN TABLES AND FK'S
/* LIST ALL CHILDREN TABLES AND FK'S
CREATED BY RAFAEL CAETANO PINTO 2007/08/15
**********************************************************************************/
SELECT
UC.CONSTRAINT_NAME CONSTRAINT_NAME,
UC.TABLE_NAME CHILD_TABLE,
UCC.COLUMN_NAME CHILD_COLUMN,
UCR.TABLE_NAME PARENT_TABLE,
UCCR.COLUMN_NAME PARENT_COLUMN
FROM USER_CONSTRAINTS UC

Why build a site? Why do your customers care?

The core purpose of a website is to help your customers answer the questions necessary to do business with you.

If your website is a series of answers to questions then the success of your site depends on what questions you answer--it's the questions and answers that show the customer you provide a service they're looking for, you're a good choice and that they should buy from you.

In general every customer has the following questions:

  1. Who are you?
  2. What do you offer?
@barenko
barenko / gist:1176086
Created August 28, 2011 00:57 — forked from viniciusteles/gist:556029
Sete Atitudes para Hackear a Indústria de Software
Sete Atitudes para Hackear a Indústria de Software
By Klaus Wuestefeld
1) Torne-se excelente.
Seja realmente bom em alguma coisa. Não fique só choramingando ou
querendo progredir às custas dos outros. Não pense q pq vc sentou 4
anos numa faculdade ouvindo um professor falar sobre software q vc
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
@barenko
barenko / .gitignore
Created September 15, 2011 19:25
General .gitignore template
###################
#.gitignore #
###################
###################
# Compiled source #
###################
*.com
*.class
*.dll
@barenko
barenko / Gruntfile.js
Created August 3, 2013 02:56
Configuração de Gruntfile para projetos web com todas as otimizacoes
module.exports = function(grunt) {
grunt.initConfig({
clean: {
build: ['build'],
dist: ['dist']
},
less: {
options: {
paths: ["src/less"]
},
@barenko
barenko / client_gtalk.rb
Created March 20, 2014 12:10
client gtalk ruby
require 'xmpp4r'
require 'xmpp4r/client'
require 'xmpp4r/roster'
require 'rss'
require 'open-uri'
include Jabber
class Bot
attr_reader :client
#! /usr/bin/python
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# me == my email address
# you == recipient's email address
me = "sender@email.com"
@barenko
barenko / pom.xml
Created May 8, 2014 03:35
POM to Apache Camel
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.rcp</groupId>
<artifactId>IntegrationTool</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>IntegrationTool</name>
@barenko
barenko / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.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-menu/core-submenu.html">
<polymer-element name="my-element">
@barenko
barenko / .jshintrc
Created January 3, 2015 23:46
JSHint configuration
{
// The plugin looks for a .jshintrc file in the same directory as the source
// file you're prettifying (or any directory above if it doesn't exist, or in
// your home folder if everything else fails) and uses those options along
// the default ones.
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/options/
"asi": true