Skip to content

Instantly share code, notes, and snippets.

View erikfloresq's full-sized avatar
Open your eyes

Erik Flores erikfloresq

Open your eyes
View GitHub Profile
@erikfloresq
erikfloresq / barraiOS
Created November 4, 2013 02:49
Personalizar la barra de estado en iOS
//barra de color blanco
- (UIStatusBarStyle) preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
//barra de colo negro
- (UIStatusBarStyle) preferredStatusBarStyle
@erikfloresq
erikfloresq / postTwitter
Created November 4, 2013 02:48
Hacer un post con twitter con Social Framework en iOS
- (IBAction)btnPosting:(id)sender
{
SLComposeViewController *redesView = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]){
SLComposeViewControllerCompletionHandler __block completionHandler=^(SLComposeViewControllerResult result){
@erikfloresq
erikfloresq / httpd-vhosts.conf
Created October 28, 2013 11:11
Simple virtual host
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /Users/werik/projects/tweetile
ServerName local.tweetile.com
ServerAlias local.tweetile.com
ErrorLog "/private/var/log/apache2/local.tweetile.com-error_log"
CustomLog /private/var/log/apache2/local.tweetile.com-access_log common
</VirtualHost>
@erikfloresq
erikfloresq / httpd.conf
Created October 28, 2013 11:09
Config apache mavericks, solo cambiale el user
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@erikfloresq
erikfloresq / modulo.js
Created August 28, 2013 21:43
Estrutura para modulo js
var Example = (function($){
var st = {
'link' : '#example'
},
dom = {},
catchDom = function(){
dom.link = $(st.link);
},
bindEvent = function(){
dom.link.on('click',fnExample);
@erikfloresq
erikfloresq / adb-en-mac
Created May 26, 2013 14:57
adb para mac en mountain lion
//crear un path , entras y colocas la ruta de de adb (que esta en el platform-tools)
sudo nano /etc/paths
//ver los dispositivos conectados
adb devices
//correr comando directamente
adb shell
//instalar apps en el terminal
@erikfloresq
erikfloresq / scrollHash
Last active December 17, 2015 16:39
Hacer Scroll con animate usan como ancla hashs
$.fn.extend({
scrollWindow: function (e) {
var t = {
duration: "slow",
easing: "swing",
lowPosition: 0
};
var e = $.extend(t, e);
var n = function (t) {
@erikfloresq
erikfloresq / apache2 ubuntu
Last active December 17, 2015 14:29
apache - mysql - php // ubuntu
APACHE
sudo apt-get install apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart
MYSQL
sudo apt-get install mysql-server
PHP
@erikfloresq
erikfloresq / node-npm
Last active December 17, 2015 06:29
install node and npm ubuntu 12.04
sudo apt-get install node
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install curl
sudo apt-get install npm
@erikfloresq
erikfloresq / jade.sublime-build
Last active December 17, 2015 03:08
jade.sublime-build for Ubuntu 12.04
{
"cmd": ["jade","-P", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.jade"
}