Skip to content

Instantly share code, notes, and snippets.

@sr75
sr75 / wget-jdk-oracle-install-example.txt
Last active March 16, 2023 11:28
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@donarus
donarus / switchClass.js
Created June 6, 2013 22:20
Simple jQuery plugin for dynamic changing classes of html elements. The main goal of this simple plugin is to allow changing bootstrap spanX classes dynamically. For example on large display, you want to have two divs with classes 'span3' and 'span9'. On small displays you might want to have class 'span5' for first div and 'span6' for second. Th…
/*
* Author: Tadeas 'donarus' Palusga - www.palusga.cz - [email protected]
* Licence: Do whatever you want and let me know if it helps :)
*/
if (typeof Object.create !== 'function') {
// function Object.create could be undefined in older browsers
Object.create = function (obj) {
function F() {
};