Skip to content

Instantly share code, notes, and snippets.

Brandon Sarà bsara

Block or report user

Report or block bsara

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bsara
bsara / email.regex
Last active Oct 20, 2017
Regex: Email Addresses
View email.regex
[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}
@bsara
bsara / url.regex
Last active Oct 20, 2017
Regex: URLs
View url.regex
(f|ht)tp(s)?://([A-Za-z0-9-]+\.)+[A-Za-z0-9-]+(/[A-Za-z0-9- ./?%&=]*)?
@bsara
bsara / Emberjs-ExtendedTextArea.html
Last active Aug 29, 2015
An extended version of the Ember.TextArea component. Extended features include: onClick Actions, and auto focus on page load.
View Emberjs-ExtendedTextArea.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Ember.js - Extended Text Area</title>
<script type='text/javascript' src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.2.1/handlebars.min.js"></script>
<script type='text/javascript' src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.4.0/ember.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://necolas.github.io/normalize.css/3.0.0/normalize.css">
@bsara
bsara / Emberjs-ExtendedTextField.html
Last active Aug 29, 2015
An extended version of the Ember.TextField component. Extended features include: onClick Actions, and auto focus on page load.
View Emberjs-ExtendedTextField.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Ember.js - Extended Text Field</title>
<script type='text/javascript' src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.2.1/handlebars.min.js"></script>
<script type='text/javascript' src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.4.0/ember.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://necolas.github.io/normalize.css/3.0.0/normalize.css">
@bsara
bsara / .gitignore_global
Last active May 24, 2017
Global .gitignore
View .gitignore_global
#---------------------------------------#
# General Ignores #
#---------------------------------------#
*~
*.orig
.vagrant
#---------------------------------------#
@bsara
bsara / fchat-google.css
Created Jun 9, 2014
Firehose Chat "Google" Theme
View fchat-google.css
/* TINY RESET */
#fchat > * {
border: 0;
font-family: sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
vertical-align: baseline;
-webkit-box-sizing: border-box;
@bsara
bsara / hosts
Created Aug 21, 2014
Parental Control via Hosts File (Blocks Ads, Pornographic Sites, Gambling Sites, & Risky Sites)
View hosts
This file has been truncated, but you can view the full file.
############################################
# Generated by: JRummy Apps Inc. #
# Like us on Facebook #
# http://www.facebook.com/JRummyApps #
############################################
# hosts.adblock - romtoolbox
127.0.0.1 0.r.msn.com
@bsara
bsara / .bash_aliases
Last active May 24, 2017
Useful Bash Aliases
View .bash_aliases
# Misc
alias oh="nemo . 2>/dev/null"
alias ohh="nautlius . 2>/dev/null"
alias cls=clear
alias lsa="ls -al"
alias ..="cd .."
alias ...="cd ../.."
# Google Chrome
@bsara
bsara / HourOfDayPreference.java
Last active Aug 29, 2015
Android Preference for Selecting Hour of Day (12/24 Hour Clock Compatible)
View HourOfDayPreference.java
/*
The MIT License (MIT)
Copyright (c) 2015 Brandon Sara (http://bsara.github.io)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@bsara
bsara / TimePreference.java
Last active Aug 29, 2015
Android Preference for Selecting Time of Day (12/24 Hour Clock Compatible)
View TimePreference.java
/*
The MIT License (MIT)
Copyright (c) 2015 Brandon Sara (http://bsara.github.io)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
You can’t perform that action at this time.