Skip to content

Instantly share code, notes, and snippets.

View bsara's full-sized avatar
😱

Brandon Sarà bsara

😱
View GitHub Profile
@bsara
bsara / email.regex
Last active March 28, 2022 15:06
Regex: Email Addresses
[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}
@bsara
bsara / url.regex
Last active February 17, 2023 18:41
Regex: URLs
(f|ht)tp(s)?://([A-Za-z0-9-]+\.)+[A-Za-z0-9-]+(/[A-Za-z0-9- ./?%&=]*)?
@bsara
bsara / Emberjs-ExtendedTextArea.html
Last active August 29, 2015 13:57
An extended version of the Ember.TextArea component. Extended features include: onClick Actions, and auto focus on page load.
<!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 August 29, 2015 13:57
An extended version of the Ember.TextField component. Extended features include: onClick Actions, and auto focus on page load.
<!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 March 28, 2022 15:10
Global .gitignore
#---------------------------------------#
# General Ignores #
#---------------------------------------#
*~
*.orig
.vagrant
#---------------------------------------#
@bsara
bsara / fchat-google.css
Created June 9, 2014 22:25
Firehose Chat "Google" Theme
/* 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 August 21, 2014 22:21
Parental Control via Hosts File (Blocks Ads, Pornographic Sites, Gambling Sites, & Risky Sites)
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
127.0.0.1 000-search.net
@bsara
bsara / .bash_aliases
Last active March 28, 2022 15:09
Useful 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 August 29, 2015 14:06
Android Preference for Selecting Hour of Day (12/24 Hour Clock Compatible)
/*
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 August 29, 2015 14:06
Android Preference for Selecting Time of Day (12/24 Hour Clock Compatible)
/*
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