Skip to content

Instantly share code, notes, and snippets.

@vool
vool / irish_counties_and_towns.sql
Created November 7, 2017 23:12
Irish county and town create and populate sql statments
--
-- Table structure for table `counties`
--
CREATE TABLE IF NOT EXISTS `counties` (
`countyID` int(11) NOT NULL auto_increment,
`countyName` varchar(10) NOT NULL,
`lat` float default NULL,
`lng` float default NULL,
@mscoutermarsh
mscoutermarsh / api_auth.rb
Created November 25, 2012 01:40
Grape API authentication methods
# /api/auth
resource :auth do
desc "Creates and returns access_token if valid login"
params do
requires :login, :type => String, :desc => "Username or email address"
requires :password, :type => String, :desc => "Password"
end
post :login do
@trey
trey / rwd.css
Created January 26, 2012 20:14
Bootstrap's RWD breakpoints
/* http://twitter.github.com/bootstrap/scaffolding.html#responsive */
/* Landscape phones and down */
@media (max-width: 480px) { ... }
/* Landscape phone to portrait tablet */
@media (max-width: 768px) { ... }
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 940px) { ... }