Skip to content

Instantly share code, notes, and snippets.

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

Josias Josiastech

🏠
Working from home
View GitHub Profile
@Josiastech
Josiastech / 0_reuse_code.js
Created August 18, 2014 21:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
public function login_form() {
global $ws, $obj;
$validate_login = $obj -> _get_form_login($_REQUEST);
if ($validate_login->succes) {
$a = $ws -> user_authenticate(array(
'config' => $this->config,
'email' => $validate_login->login->email,
@Josiastech
Josiastech / jquery-colorpicker.js
Created June 20, 2012 16:14 — forked from alno/jquery-colorpicker.js
jQuery color picker Plugin
// This is fork of http://www.felecan.com/jquery-normal-color-picker/
jQuery.fn.addColorPicker = function( props ) {
if( !props ) { props = []; }
props = jQuery.extend({
colors : [
"#000000","#000033","#000066","#000099","#0000CC","#0000FF",
"#330000","#330033","#330066","#330099","#3300CC","#3300FF",