Skip to content

Instantly share code, notes, and snippets.

@bartlewis
bartlewis / input.scss
Created October 26, 2021 16:39
Generated by SassMeister.com.
// In a theme file (configuration).
$theme: (
button-primary-background: #004581,
button-primary-text: #ffffff,
splash-background-color: rgb(5, 5, 71),
splash-background-image: '/foo.jpg',
splash-logo-transition: opacity 1500ms ease-in-out
);
@bartlewis
bartlewis / input.scss
Created October 26, 2021 16:34
Generated by SassMeister.com.
// In a theme file (configuration).
$theme: (
button-primary-background: #004581,
button-primary-text: #ffffff,
splash-background-color: rgb(5, 5, 71),
splash-background-image: '/foo.jpg',
splash-logo-transition: opacity 1500ms ease-in-out
);
@bartlewis
bartlewis / input.scss
Last active October 25, 2021 19:32
Generated by SassMeister.com.
// In a theme file (configuration).
$theme: (
button: (
primary: (
background: #004580,
text: #ffffff
)
),
splash: (
@bartlewis
bartlewis / db.js
Last active December 24, 2015 17:09
I built this for use with a Phonegap application. I wanted a way to store data from a remote API within a local database. The thought is that on the next open of the application, I can show the user something, while loading more data in the background.
define(function(require) {
var $ = require('jquery');
var dbConn;
return {
open: function(name, version, size) {
dbConn = window.openDatabase(name, version, name, size);
},
@bartlewis
bartlewis / app.js
Last active December 20, 2015 04:39
"Making a Well Structured Kendo UI Mobile App in Icenium with Require.js" http://codingwithspike.wordpress.com/2012/11/30/making-a-well-structured-kendo-ui-mobile-app-in-icenium-with-require-js/ This blog post above was my starting point, though I am not using Icenium (just KendoUI and PhoneGap Build). The one thing I did not like about this set…
define(function(require) {
var kendoApp,
$ = require('jquery'),
kendo = require('kendo'),
kendoLayouts = {
service: require('layouts/service')
},
kendoViews = {
drawer: require('views/drawer'),
availability: require('views/availability'),
@bartlewis
bartlewis / build.js
Created April 11, 2013 20:44
Trying (unsuccessfully) to get require-css plugin configured. Running from src works, build process finishes, but the built file is looking for css.js in the wrong place. It is trying to load "app/css.js" when it should be "vendor/require/css.js". css.js and related files are located in "vendor/require/".
({
appDir: 'src',
baseUrl: 'app',
dir: 'build',
modules: [
{name:'main'}
],
mainConfigFile: 'src/app/main.js',
paths: {
jquery: '../vendor/jquery.min',