Skip to content

Instantly share code, notes, and snippets.

View tolribeiro's full-sized avatar

Thiago Ribeiro tolribeiro

View GitHub Profile
@douglashill
douglashill / main.m
Last active November 3, 2024 09:37
A minimal iOS app set up entirely in code using Objective-C rather than using a storyboard and UIApplicationSceneManifest in the Info.plist.
// A minimal iOS app set up entirely in code using Objective-C rather than using a storyboard and UIApplicationSceneManifest in the Info.plist.
// Last updated for iOS 18.
// Swift version: https://gist.github.com/douglashill/b8125f7e2336b6a47461df0d4898f64d
@import UIKit;
@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
@end
@implementation SceneDelegate
@kainlite
kainlite / mp2.html
Created July 29, 2017 22:29
MercadoPago Card Token
<html>
<head>
<script src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js"></script>
</head>
<body>
<form action="" method="post" id="pay" name="pay" >
<fieldset>
<ul>
<li>
@keithweaver
keithweaver / s3-upload-via-link.php
Last active May 18, 2023 16:44
Upload image using link to AWS S3 with PHP
@noelboss
noelboss / git-deployment.md
Last active October 12, 2024 16:09
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@kmdarshan
kmdarshan / gist:ab8ccdb0640f252a0528
Created March 21, 2015 22:08
Insertion and deletion into a binary search tree in objective c
#import
@interface Node : NSObject{
Node *left;
Node *right;
NSObject *data;
}
@property (nonatomic, strong) Node *left;
@property (nonatomic, strong) Node *right;
@dhhagan
dhhagan / print-timestamp-arduino
Created January 6, 2015 21:27
Print a timestamp to SD card on Arduino
/*
print_time() returns a string in the format mm-dd-yyyy hh:mm:ss
*/
#include "RTClib.h"
#include <SD.h>
#include <SPI.h>
RTC_DS1307 rtc;
const int chipSelect = 10;
@oodavid
oodavid / README.md
Last active October 11, 2024 00:36 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/