Skip to content

Instantly share code, notes, and snippets.

View Initsogar's full-sized avatar
💻
Fixing bugs

Rafael Agostini Initsogar

💻
Fixing bugs
View GitHub Profile
<snippet>
<content><![CDATA[
Ext.define('${1:AppName}.controller.${2:ViewName}', {
extend: 'Ext.app.Controller',
config: {
refs: {
elemento: '#elemento'
},
control: {
elemento: {
@Initsogar
Initsogar / SenchaTouchView.sublime-snippet
Created August 24, 2013 23:53
Generate a Sencha Touch View boilerplate for Sublime Text 2 writing "sencha:view" and press "tab" key.
<snippet>
<content><![CDATA[
Ext.define('${1:AppName}.view.${2:ViewName}', {
extend: 'Ext.Panel',
xtype: '',
config: {
title: '',
defaults: {
},
@Initsogar
Initsogar / senchacordova.sh
Last active December 20, 2015 02:49
Cordova 3.0 and Sencha Touch CLI shell script
#build Sencha
cd source
sencha app build package
#copy Sencha package to Cordova work dir
cd ..
yes | cp -r source/package/* www
#Prepare, build and run Cordova!
cordova prepare android
@Initsogar
Initsogar / stylus-compile
Created June 26, 2013 19:25
Stylus compile commands
#Compiles stylus directory to CSS on css directory without compress
#It also watches any changes and then compiles it
stylus -w ./stylus -o ./css
#Compiles stylus directory to compressed CSS on css directory
#It also watches any changes and then compiles it
stylus -w ./stylus -c -o ./css
@Initsogar
Initsogar / pagify_example.php
Last active December 15, 2015 12:09
PHP-Client Pagify API Example
<?php
/**
* This is an Pagify API example using the PHP-Client (https://github.com/pagify/php-client).
* Generating a PDF using a template previously created.
*
* Assuming your pagifyio.php is in the same
* directory as this file.
*/
require_once 'pagifyio.php'