Download and install Atom Editor:
cd ~/Downloads
var lang = { | |
// Text | |
unspecifiedRule: 'Por favor, insira um valor válido', | |
unspecifiedField: 'Este campo', | |
// Prompt | |
empty: '{name} deve ter um valor', | |
checked: '{name} deve ser marcado', | |
email: '{name} deve ser um valid e-mail', | |
url: '{name} deve ser uma url válida', | |
regExp: '{name} não está formatado corretamente', |
<?php | |
/** | |
* @author Natan Felles <[email protected]> | |
*/ | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
if ( ! function_exists('add_foreign_key')) | |
{ | |
/** | |
* @param string $table Table name |
<?php | |
/** | |
* @author Natan Felles <[email protected]> | |
*/ | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
/** | |
* Class Access | |
*/ | |
class Access extends CI_Controller { |
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <[email protected]> |
#!/bin/bash | |
# Author: Natan Felles <[email protected]> | |
# Description: Easy LEMP Management | |
# Local: /usr/local/bin/lemp | |
# Foreground colors | |
declare -A COLOR | |
COLOR[default]=$(tput sgr0) | |
COLOR[red]=$(tput setaf 1) | |
COLOR[green]=$(tput setaf 2) |
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme id="darcula" _name="Darcula" version="1.0"> | |
<author>Sash0k</author> | |
<_description>Dark color scheme using IntelliJ IDEA colors</_description> | |
<!-- Scribe Theme Generator 1.3 --> | |
<!-- COLORS --> | |
<color name="comment_color" value="#629755"/> |
Source: https://github.com/bcit-ci/CodeIgniter/wiki/Compress-HTML-output
To remove useless whitespace from generated HTML, except for Javascript see [Regex Source] or just replace the $re
value:
$re = '%# Collapse ws everywhere but in blacklisted elements.
(?> # Match all whitespaces other than single space.
[^\S ]\s* # Either one [\t\r\n\f\v] and zero or more ws,
| \s{2,} # or two or more consecutive-any-whitespace.
) # Note: The remaining regex consumes no text at all...
<link href="http://yandex.st/highlightjs/7.0/styles/default.min.css" rel="stylesheet"> | |
<script src="http://yandex.st/highlightjs/7.0/highlight.min.js"></script> | |
<script type='text/javascript'> $(document).ready(function() { | |
function fixup(s) { | |
var re1 = new RegExp('<','g'), re2 = new RegExp('>','g'); | |
return s.replace(re1,'<').replace(re2,'>'); | |
} | |
$.ajax({type: "GET", | |
url: "https://api.github.com/gists/5617520", |