Skip to content

Instantly share code, notes, and snippets.

View BlakeWilliams's full-sized avatar
💭
building things, probably

Blake Williams BlakeWilliams

💭
building things, probably
View GitHub Profile
@BlakeWilliams
BlakeWilliams / pickadate.coffee
Last active December 12, 2015 00:29
Remove useless parts.
App.PickADate = Ember.View.extend
attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort',
'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today',
'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector',
'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker']
events: ['onOpen', 'onClose', 'onSelect', 'onStart']
attributeBindings: ['type', 'value', 'placeholder']
type: 'text'
tagName: 'input'
UI.DatePicker = Ember.View.extend UI.Widget,
uiType: 'datepicker'
uiOptions: ['disabled', 'contrainInput', 'dateFormat', 'defaultDate', 'maxDate', 'minDate', ]
uiEvents: ['create', 'beforeShow', 'beforeShowDay', 'onChangeMonthYear'
'onClose', 'onSelect']
attributeBindings: ['type', 'value', 'placeholder']
type: 'text'
tagName: 'input'
/*global App*/
window.App = Ember.Application.create();
// Router
App.Router.map(function() {
this.resource('inventory', function(){
this.route('review');
this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){
<div id="container">
<div id="left">
{{render sidebar}}
</div>
<div id="outlet">
{{outlet}}
</div>
</div>
@BlakeWilliams
BlakeWilliams / gist:4287055
Created December 14, 2012 17:14
Basic responsive setup
.visible-desktop {
display: inherit;
}
.visible-tablet {
display: none !important;
}
.visible-mobile {
display: none !important;
def show
@post = Post.find params[:id]
redirect_to @post if params[:id] != @post.to_param
end
eval "$(rbenv init -)"
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
@BlakeWilliams
BlakeWilliams / new.php
Created November 13, 2012 03:28 — forked from Codercise/new.php
<?php
include('../../sqlconnection/config.php');
$business = array(
"name" => $_POST['name'],
"country" => $_POST['country'],
"email" => $_POST['email'],
"phone" => $_POST['phone'],
"website" => $_POST['website'],
"tagline" => $_POST['tagline'],
"category" => $_POST['category'],
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
$('#onArizonaClick').click(function(e) {
//handle here
});
</script>
@BlakeWilliams
BlakeWilliams / gist:3321873
Created August 11, 2012 06:46
Messages.app spammer
tell application "Messages"
activate
repeat with myBuddy in buddies
if handler of myBuddy is "+18505555555" then
repeat
send "hey" to myBuddy
end repeat
end if
end repeat
end tell