Skip to content

Instantly share code, notes, and snippets.

View cstipkovic's full-sized avatar
🏠
Working from home

Clauber Stipkovic cstipkovic

🏠
Working from home
View GitHub Profile
@cstipkovic
cstipkovic / espn-brasil-command.js
Created September 27, 2009 00:52
Ubiquity Commnad for ESPN-Brazil
/* This Commmand was maked to Mozilla Ubiquity 0.6.x */
CmdUtils.CreateCommand({
names: ["espn-br", "espn-brasil"],
description: "Mostra as ultimas noticias do site ESPN.com.br",
help: "Digite espn-br e o termo que você quer buscar!",
author: {
name: "Clauber Stipkovic",
email: "clauber.halic@gmail.com",
homepage: "http://clauber.coffeebreakers.org"
},
@cstipkovic
cstipkovic / espn-com-command.js
Created November 22, 2009 03:08
Ubiquity Command for ESPN.com
/* This Commmand was maked to Mozilla Ubiquity 0.6.x */
CmdUtils.CreateCommand({
names: ["espn", "espn-com"],
description: "Shows the last news about sports from ESPN.com",
help: "Type espn or espn-com and the term that you want to search!",
author: {
name: "Clauber Stipkovic",
email: "clauber.halic@gmail.com",
homepage: "http://clauber.coffeebreakers.org"
},
@cstipkovic
cstipkovic / creating_maven_project.md
Last active September 6, 2016 06:28
Creating java project using maven

Creating Java project using maven in command line

Cli Project

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Webapp project

mvn archetype:generate -DgroupId={project-packaging} -DartifactId={project-name} -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

@cstipkovic
cstipkovic / pseudo-elements.md
Created September 19, 2016 20:10 — forked from p3t3r67x0/pseudo_elements.md
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@cstipkovic
cstipkovic / Vagrantfile
Created September 23, 2016 01:29
Vagrantfile para subir uma maquina ubuntu (nesse caso "provisionando" com tomcat e java 8)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@cstipkovic
cstipkovic / provision-ubuntu-tomcat.md
Last active December 6, 2016 23:42
Shellscript para instalar Java8 e Tomcat7 no Ubuntu

Provision Ubuntu Tomcat

@cstipkovic
cstipkovic / node_wrapper.md
Last active January 31, 2017 17:00
NodeJS wrapper for run locally using binary

NodeJS Wrapper - run binary locally

Node.js wrapper which will download and proxy to node locally. This allows you to automatically manage the installed version of node.

CONFIGURATION

NODEW_INSTALL_VERSION - an env variable to specify the version of node to install - Defaults to 4.4.7 NODEW_DIST_BASE_URL - an env variable to specify the binary download location - Defaults to NodeJS website

Script para instalar o Java 8 (Oracle) Linux Debian like

@cstipkovic
cstipkovic / .gitignore
Last active March 8, 2017 21:03
My Linux (Debian like) setup script
*.swp
@cstipkovic
cstipkovic / formatDate.js
Last active July 31, 2017 03:02
A simple format Date function using Javascript prototype
/*
Based on Rick Strahl code
http://www.west-wind.com/weblog/posts/2008/Mar/18/A-simple-formatDate-function-for-JavaScript
Contributors:
Clauber Stipkovic - @clauberhalic
Mário Rinaldi - @MarioRinaldi
*/
Date.prototype.formatDate = function (format) {