Skip to content

Instantly share code, notes, and snippets.

View iesta's full-sized avatar

Goom JM iesta

View GitHub Profile
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Create the main window
window_ = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Create an CCGLView with a RGB565 color buffer, and a depth buffer of 0-bits
CCGLView *glView = [CCGLView viewWithFrame:[window_ bounds]
pixelFormat:kEAGLColorFormatRGB565 //kEAGLColorFormatRGBA8
@iesta
iesta / gist:5143431
Created March 12, 2013 14:41
AppDelegate.m
//
// AppDelegate.m
// GooDefender
//
// Created by jm goemaere on 6/03/13.
// Copyright __MyCompanyName__ 2013. All rights reserved.
//
#import "cocos2d.h"
@iesta
iesta / new_gist_file
Created June 11, 2013 13:39
Create phonegap app
./create /Volumes/All/android/dev/pg001 li.duck.phonegap001 phonegap001
@iesta
iesta / new_gist_file
Created June 24, 2013 12:48
Flat bootstrap
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
@iesta
iesta / gist:6434429
Created September 4, 2013 08:49
Some Sublime Text 2 user keymap
[
{ "keys": ["ctrl+-"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+super+escape"], "command": "show_panel", "args": {"panel": "console"} },
{ "keys": ["ctrl+shift+="], "command": "insert_snippet", "args": {"contents": "<%= $0 -%>"} },
{ "keys": ["ctrl+shift+ù"], "command": "insert_snippet", "args": {"contents": "<% $0 %>"} },
{ "keys": ["ctrl+$"], "command": "show_panel", "args": {"panel": "console"} },
{ "keys": ["ctrl+enter"], "command": "insert_snippet", "args": {"contents": "<br />"} },
{ "keys": ["ctrl+shift+-"], "command": "insert_snippet", "args": {"contents": "<hr />"} },
{ "keys": ["ctrl+l"], "command": "insert_snippet", "args": {"contents": " => "} },
@iesta
iesta / new_gist_file
Created September 10, 2013 14:41
Create a button programmatically
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self
action:@selector(aMethod:)
forControlEvents:UIControlEventTouchDown];
[button setTitle:@"Show View" forState:UIControlStateNormal];
button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
[view addSubview:button];
@iesta
iesta / gist:6593176
Created September 17, 2013 11:37
Join element of NSArray ios
[[self.wrings valueForKey:@"upperCuts"] componentsJoinedByString:@"caca"]);
@iesta
iesta / gist:7446235
Created November 13, 2013 09:31
Postfix errors - mail.log
Nov 13 10:26:18 vps13616 postfix/smtp[17826]: connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Nov 13 10:26:18 vps13616 postfix/smtp[17818]: connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Nov 13 10:26:18 vps13616 postfix/smtp[17838]: connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Nov 13 10:26:18 vps13616 postfix/smtp[17825]: connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Nov 13 10:26:18 vps13616 postfix/smtp[17831]: connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Nov 13 10:26:18 vps13616 postfix/smtp[17818]: 896E32C2884: to=<sucresemoule@gmail.com>, orig_to=<nlaftq@ufeo.com>, relay=none, delay=25496, delays=25345/0.42/151/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out)
Nov 13 10:26:18 vps13616 postfix/smtp[17826]: 35C8C2C2454: to=<advertise.bz222zuqi@gmail.com>, relay=n
iMac-de-jm:mp4 jm$ ffmpeg -i Barbapapa.MP4 - i Ainsi\ font\,\ font\,\ font\,\ les\ petites\ marionnettes.MP4
ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 17 2014 09:08:33 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
@iesta
iesta / gist:9ac5701062f018bb93a5
Last active August 29, 2015 14:01
Example of use of luckycycle php lib to access api
require_once dirname(__FILE__).'/luckysdk/lucky.php';
// get API keys on https://www.luckycycle.com
$url = 'https://www.luckycycle.com';
$api_key = 'XXXXXXXXXXXXXXXX';
$op = 'XXXXXXXXXXXXXXX';
$req = new LuckyCycleApi($url);
$req->setApiKey($api_key);