Skip to content

Instantly share code, notes, and snippets.

View aterribili's full-sized avatar

Abner Terribili aterribili

View GitHub Profile
(function() {
if (Cordova.hasResource("youtubeUploader")) return;
Cordova.addResource("youtubeUploader");
function YouTubeUploader() {
}
YouTubeUploader.prototype.uploadVideo = function(file, success, fail) {
@aterribili
aterribili / BNG_Pong_basicsphere
Last active December 24, 2019 19:56 — forked from nklsrh/BNG_Pong_basicsphere
Fix missing `)`
// ---------------------------------
// Based on Aerotwist's cool tutorial - http://www.aerotwist.com/tutorials/getting-started-with-three-js/
// ---------------------------------
// set up the sphere vars
// lower 'segment' and 'ring' values will increase performance
var radius = 5,
segments = 6,
rings = 6;
@aterribili
aterribili / .travis.yml
Last active March 25, 2021 01:52
iOS + Travis + Fastlane continuous delivery
language: objective-c
os: osx
xcode_workspace: {workspace-name}.xcworkspace
xcode_scheme: {workspace-name}
xcode_sdk: iphonesimulator9.0
osx_image: xcode8
before_install:
- |
brew update
gem install xcpretty -N --no-ri --no-doc
@aterribili
aterribili / bst.swift
Last active May 13, 2017 13:33
BST in swift *Binary Search Tree*
enum BinarySearchTree<T: Comparable> {
case Leaf(T?)
indirect case Node(T, BinarySearchTree, BinarySearchTree)
}
func search<T: Comparable>(in tree: BinarySearchTree<T>, for item: T) -> Bool {
switch tree {
case .Leaf(let value):
return item == value
case .Node(let selfValue, let left, let right):