Skip to content

Instantly share code, notes, and snippets.

Web technologies lover! ❤️

Miguel Ángel Durán midudev

Web technologies lover! ❤️
View GitHub Profile
delacruz-dev /
Created Aug 8, 2016
Copy your SSH key in your clipboard
cat ~/.ssh/ | pbcopy
carlesba / Block.js
Last active Jul 17, 2016
Reusable Components
View Block.js
Propagate any prop to the children but allowing className extension
Needs `babel-plugin-transform-object-rest-spread`
const Block = ({classes, className,}) =>
<div {} className={`${[classes, className].join(' ')}`} />
nucliweb / npm.aliases.bash
Last active Jun 8, 2016
NPM Aliases for Bash-it
View npm.aliases.bash
cite 'about-alias'
about-alias 'common npm abbreviations'
# Aliases
alias ni='npm install'
alias nis='npm install --save'
alias nid='npm install --save-dev'
alias nit='npm install-test'
alias nits='npm install-test --save'
alias nitd='npm install-test --save-dev'
sekati /
Created Jul 24, 2012
Xcode Auto-increment Build & Version Numbers
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
bjhomer / UIWebView+AccessoryHiding.m
Created Mar 16, 2012
Hiding the inputAccessoryView of a UIWebView
View UIWebView+AccessoryHiding.m
#import <objc/runtime.h>
#import <UIKit/UIKit.h>
@interface UIWebView (HackishAccessoryHiding)
@property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView;
@implementation UIWebView (HackishAccessoryHiding)
static const char * const hackishFixClassName = "UIWebBrowserViewMinusAccessoryView";