# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
/* Simple Car game for a 16x2 LCD display | |
You can use any Hitachi HD44780 compatible LCD. | |
Wiring explained at http://www.arduino.cc/en/Tutorial/LiquidCrystal | |
(I used theLCD Electronic Brick on bus 1: | |
rs on pin 2, rw on pin 3, enable on pin 4, | |
data on pins 5,6,7,8) | |
There's also a "steering wheel" potentiometer on analog input 1, | |
and a Piezo speaker on pin 9 (PWM). | |
Enjoy, |
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
#!/usr/bin/ruby | |
# | |
# This script fixes /usr/local only. | |
# | |
# 6th January 2010: | |
# Modified the script to just fix, rather than install. - rpavlik | |
# | |
# 30th March 2010: | |
# Added a check to make sure user is in the staff group. This was a problem | |
# for me, and I think it was due to me migrating my account over several |
by Dale Sande
CSS has had a long and sordid past. A developer never sets out with the goal of making a complete and total mess of things. Their intention is not to build something that is practically illegible, impractical to maintain and is limited in scale. But somehow, this is where many inevitably end up. Luckily, all is not lost. With some simple strategies, organizational methods and out-of-the box tools, we can really help get that junk-drawer inline.
For many of us getting started with Sass, at one time or another have created a junk-drawer of files. For most, this was a rookie mistake, but for others, this is a continuing issue with our architecture and file management techniques. Sass doesn't come with any real rules for file management so developers are pretty much left to their own devices.
CSS started out with very simple intentions, but as [tableless web design][1.1] began to really take a foothold, o
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
<?php | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
Location | Name | Frequency | Duplex | Offset | Tone | rToneFreq | cToneFreq | DtcsCode | DtcsPolarity | Mode | TStep | Skip | Comment | URCALL | RPT1CALL | RPT2CALL | DVCODE | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 462.125000 | 0.000000 | TSQL | 88.5 | 69.3 | 023 | NN | FM | 5.00 | S | ||||||||
2 | 462.225000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
3 | 462.325000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
4 | 462.425000 | 0.000000 | TSQL | 88.5 | 103.5 | 023 | NN | FM | 5.00 | S | ||||||||
5 | 462.525000 | 0.000000 | TSQL | 88.5 | 114.8 | 023 | NN | FM | 5.00 | S | ||||||||
6 | 462.625000 | 0.000000 | TSQL | 88.5 | 127.3 | 023 | NN | FM | 5.00 | S | ||||||||
7 | 462.725000 | 0.000000 | TSQL | 88.5 | 136.5 | 023 | NN | FM | 5.00 | S | ||||||||
8 | 462.825000 | 0.000000 | TSQL | 88.5 | 162.2 | 023 | NN | FM | 5.00 | S | ||||||||
9 | 462.925000 | 0.000000 | DTCS | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S |
/* | |
A userscript to add keyboard shortcuts to the Instagram timeline: | |
- J or space to go to next image | |
- K to go to previous image | |
- L to toggle like on the current image | |
- N to load new posts | |
*/ | |
$(document.body).keypress(function(event) { | |
// ignore keypresses in comment fields |
# p proj -> cd ~/Projects/project | |
# works best (fastest) if your projects are lower-case and you refer to them as such | |
# if not, then for best performance (no lag) you have to call "p Proj" (if ~/Projects/Project exists) | |
function p { | |
cd ~/Projects | |
local match | |
if [ -n "$1" ]; then | |
local min_size=1000 | |
# first try only directories that start exactly with our input | |
for d in $1*/ ; do |