Skip to content

Instantly share code, notes, and snippets.

View igiagante-zz's full-sized avatar

Ignacio Giagante igiagante-zz

  • córdoba - argentina
View GitHub Profile
@igiagante-zz
igiagante-zz / .yml
Created February 25, 2021 15:05
Deploy to lightsail from gitlab
deploy_to_lightsail:
stage: deploy
services:
- name: docker:dind
entrypoint: ['env', '-u', 'DOCKER_HOST']
command: ['dockerd-entrypoint.sh']
before_script:
# 1. Install AWSCLIv2 (https://stackoverflow.com/questions/60298619/awscli-version-2-on-alpine-linux#answer-61268529)
@igiagante-zz
igiagante-zz / modal.m
Last active November 16, 2017 17:19
modal cupon
UIViewController *vc = [[UIViewController alloc] init];
UIView *superview = vc.view;
// Width constraint
[superview addConstraint:[NSLayoutConstraint constraintWithItem: superview
attribute:NSLayoutAttributeWidth
relatedBy:NSLayoutRelationEqual
toItem:nil
attribute: NSLayoutAttributeNotAnAttribute
multiplier:1
{
"name": "feedback-mobile_api",
"version": "0.0.1",
"description": "Feedback mobile API",
"repository": "https://github.com/mercadolibre/feedback-mobile_api.git",
"main": "feedback-mobile_api.js",
"scripts": {
"start": "export NODE_ENV=development; export NODE_ICU_DATA=node_modules/full-icu; ./node_modules/mobile-adk/bin/start.js feedback-mobile_api.js | ./node_modules/bunyan/bin/bunyan -o short",
"cluster": " export NODE_ICU_DATA=node_modules/full-icu; ./node_modules/mobile-adk/bin/start_cluster.js feedback-mobile_api.js",
"debug": "export NODE_ENV=development; export NODE_ICU_DATA=node_modules/full-icu; node --inspect --debug-brk ./node_modules/mobile-adk/bin/start.js feedback-mobile_api.js",
@igiagante-zz
igiagante-zz / podspec
Last active August 24, 2016 13:47
podspec
Pod::Spec.new do |s|
s.name = 'meliDevSDK'
s.version = '0.1.0'
s.summary = 'A short description of meliDevSDK.'
s.resources = "LibraryComponents/Classes/**/*.xib"
s.source_files = "LibraryComponents/Classes/**/*.{h,m}"
s.homepage = 'https://github.com/igiagante/meliDevSDK'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
var createProcessImageFiles = function(folderName, files, createProcessImageFilesCallback) {
var flow = {
// Persist each new image file
createImageDirectory: async.apply(createImageDirectory, folderName),
// Update images data from the model
persistImageFiles: ['createImageDirectory', function(callback) {