Skip to content

Instantly share code, notes, and snippets.

View empirefx's full-sized avatar

EFEX empirefx

  • Argentina, Santa Fe
View GitHub Profile
@empirefx
empirefx / default.css
Last active August 29, 2015 13:56
Drag n drop in jquery
/* COLOR BACKGROUND */
blockquote{
background-color: #F7F7F7;
}
.layout-1{
background-color: #fff;
}
@empirefx
empirefx / controllerWelcome.php
Created February 6, 2014 21:43
Practicas con ci ajax jquery
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
@empirefx
empirefx / ProccessIsRunningGnu.py
Last active August 29, 2015 13:57
ProccessIsRunning
import re
import subprocess
def is_running(process):
s = subprocess.Popen(["ps", "axw"],stdout=subprocess.PIPE)
for x in s.stdout:
if re.search(process, x):
@empirefx
empirefx / AngularJS.html
Created April 11, 2014 01:05
AngularJS easy way..
<!doctype html>
<html data-ng-app="prueba">
<meta charset="utf-8"/>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular-route.js"></script>
<script type="text/javascript">
var probando = angular.module("prueba", ['ngRoute']);
probando.config(function($routeProvider) {
/* */
table{background-color: green;}
/* */
.windowbg2:last-child{width: 100%;}
/* background 1 */
body {background-color:#fff;}
/* background 2 */
@empirefx
empirefx / ci_helper.php
Created September 16, 2014 03:57
HTMLpurifier
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Codeigniter HTMLPurifier Helper
*
* Purify input using the HTMLPurifier standalone class.
* Easily use multiple purifier configurations.
*
* @author Tyler Brownell <tyler@bluefoxstudio.ca>
* @copyright Public Domain
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QUrl
from PyQt4.QtWebKit import QWebView
from sys import exit, argv
if __name__ == '__main__':
app = QApplication(argv)
var socket = io.connect();
socket.on('info', function (data) {
console.log(data);
var state = JSON.parse(data.state);
for( i = 0; i < state.length; i++)
{
var body = document.getElementsByTagName("body")[0];
@empirefx
empirefx / grooveshark.py
Created January 19, 2015 19:22
Grooveshark as native app (req: python, PyQt4)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4 import QtGui, QtCore, QtWebKit
import subprocess, os
from sys import exit, argv
if __name__ == '__main__':
app = QtGui.QApplication(argv)
view = QtWebKit.QWebView()
### Keybase proof
I hereby claim:
* I am empirefx on github.
* I am efex (https://keybase.io/efex) on keybase.
* I have a public key whose fingerprint is 8911 7745 CC5C D178 83E1 1D08 85F8 0A4C E22F 4530
To claim this, I am signing this object: