This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function uploadify(){ | |
if (!empty($_FILES)) { | |
$tempFile = $_FILES['Filedata']['tmp_name']; | |
$NombreCalculado = calcular_id(); | |
$Extension = strtolower(strrchr ($_FILES['Filedata']['name'],".")); | |
$Ruta = $this->artesania->CarpetaImagen.$NombreCalculado.$Extension; | |
if(move_uploaded_file($tempFile,'.'.$Ruta)){ | |
$DatosArchivo = array(); | |
$DatosArchivo['ruta'] = $Ruta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Suscripciones de Rover en Google Reader</title> | |
</head> | |
<body> | |
<outline text="Activetuts+" title="Activetuts+" type="rss" | |
xmlUrl="http://active.tutsplus.com/feed/" htmlUrl="http://active.tutsplus.com"/> | |
<outline text="ALT1040" title="ALT1040" type="rss" | |
xmlUrl="http://alt1040.com/feed" htmlUrl="http://alt1040.com"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"files": | |
{ | |
"jquery.js": "http://code.jquery.com/jquery.min.js", | |
"backbone.js": "http://backbonejs.org/backbone-min.js", | |
"underscore.js": "http://documentcloud.github.com/underscore/underscore-min.js", | |
"modernizr.js": "http://modernizr.com/downloads/modernizr.js", | |
"normalize.css": "https://raw.github.com/h5bp/html5-boilerplate/master/css/normalize.css", | |
"main.css": "https://raw.github.com/h5bp/html5-boilerplate/master/css/main.css", | |
"spark loader": "http://getsparks.org/static/install/MY_Loader.php.txt", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
class Connection | |
{ | |
private $result; | |
private $db = array( | |
'write' => array( | |
'host' => 'localhost', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter MY_Model Class | |
* | |
* Base model with CRUD functions for CodeIgniter Framework. | |
* Bassed on Jamie Rumbelow model base class. | |
* | |
* @package CodeIgniter | |
* @subpackage Libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "tessel-portal", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node app" | |
}, | |
"dependencies": { | |
"express": "4.0.0", | |
"jade": "1.3.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var request = require('request'); | |
module.exports = function (grunt) { | |
// show elapsed time at the end | |
require('time-grunt')(grunt); | |
// load all grunt tasks | |
require('load-grunt-tasks')(grunt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* URL Slug | |
* | |
* Converts an string into a formated url slug string | |
* | |
* @access public | |
* @param string str | |
* @return string | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# From openDesktop | |
# http://opendesktop.org/content/show.php/Ubucleaner?content=71529 | |
YELLOW="\033[1;33m" | |
RED="\033[0;31m" | |
ENDCOLOR="\033[0m" | |
if [ "$USER" != root ]; then |
OlderNewer