Skip to content

Instantly share code, notes, and snippets.

View andru255's full-sized avatar
🇵🇪
:)

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@andru255
andru255 / fancy-tabs-demo.html
Created October 28, 2020 15:19 — forked from ebidel/fancy-tabs-demo.html
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
<script>
function execPolyfill() {
(function(){
// CustomElementsV1.min.js v1 polyfill from https://github.com/webcomponents/webcomponentsjs/tree/v1/src/CustomElements/v1.
/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
@andru255
andru255 / SectionedTableViewAdapter.swift
Created February 15, 2019 15:30 — forked from AlexanderZ-aFrogleap/SectionedTableViewAdapter.swift
Generic UITableView adapter with sections
//: Playground - noun: a place where people can play
import UIKit
protocol SectionModel {
var count: Int { get }
func cell(at: Int) -> UITableViewCell
func selected(at: Int)
}
@andru255
andru255 / roadrace.py
Created May 8, 2018 06:42 — forked from jaytaph/roadrace.py
Pygame RoadRace game
import math
import pygame
import numpy as np
class Car(pygame.sprite.Sprite):
def __init__(self, surface):
self.bounded_rect = surface.get_rect()
super(Car, self).__init__()
@andru255
andru255 / install-swift-ubuntu.md
Created February 25, 2018 17:43 — forked from Azoy/install-swift-ubuntu.md
Guide on how to install Swift on Ubuntu

Install Swift on Ubuntu

Requirements

  1. Ubuntu 14.04, 16.04, or 16.10

Step 1 - Dependencies

  1. Open up terminal
  2. Install core deps: sudo apt-get install clang libicu-dev git

Step 1.1 - Ubuntu 14.04 Clang

@andru255
andru255 / fastfile
Created October 26, 2017 22:24 — forked from ulhas/fastfile
Fastfile for HyperTrack iOS SDKs
fastlane_version "1.57.0"
require 'fileutils'
default_platform :ios
platform :ios do
desc "Increment framework version"
private_lane :increment_framework_version do |lane|
@andru255
andru255 / OCLintTool.sh
Created October 16, 2017 23:15 — forked from SunXiaoShan/OCLintTool.sh
OCLint
# 安裝 Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 安装 OCLint
brew tap oclint/formulae
brew install oclint
# 安裝 xcpretty
gem install xcpretty
http://slides.com/agar3s/que-debes-saber-para-hacer-un-juego-con-javascript#/
capacidades canvas
http://codepen.io/agares/full/pJpoya/
capacidades webgl
http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html
capacidades dispositivos de entrada
http://codepen.io/agares/full/NPdKOB/
@andru255
andru255 / gzip_s3_sync.sh
Created April 6, 2017 16:51 — forked from mario21ic/gzip_s3_sync.sh
Script to automatically compress and sync your bucket s3 hosted static website
#!/bin/bash
DIR=`pwd`
SRC_DIR=$1
BUCKET=$2
TMP_DIR="/tmp/gzsync"
mkdir -p $TMP_DIR
# check that we have a trailing slash
[[ $BUCKET != */ ]] && BUCKET="$BUCKET"/
@andru255
andru255 / onblur.jsx
Created November 6, 2016 03:30 — forked from pstoica/OnBlurComponent.jsx
onBlur for entire react component
var HelloMessage = React.createClass({
render: function() {
return <div tabIndex="1" onBlur={this.onBlur}>
Hello <input type="text" value="wat"/>
</div>;
},
onBlur: function(e) {
var currentTarget = e.currentTarget;
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# /home was on /dev/sda3 during installation