NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| @import "compass/utilities/sprites/base"; | |
| // General Sprite Defaults | |
| // You can override them before you import this file. | |
| $emblem-sprite-base-class: ".emblem-sprite" !default; | |
| $emblem-sprite-dimensions: false !default; | |
| $emblem-position: 0% !default; | |
| $emblem-spacing: 0 !default; | |
| $emblem-repeat: no-repeat !default; |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Copyright (c) Rich Hickey. All rights reserved. | |
| ; The use and distribution terms for this software are covered by the | |
| ; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
| ; which can be found in the file CPL.TXT at the root of this distribution. | |
| ; By using this software in any fashion, you are agreeing to be bound by | |
| ; the terms of this license. | |
| ; You must not remove this notice, or any other, from this software. | |
| ;dimensions of square world |
| // implement like this: | |
| var window = Ti.UI.createWindow({ | |
| backgroundColor:'#fff' | |
| }); | |
| // draw the gridlines first so your other elements stack on top of them | |
| // without requiring you to set the z-index property of each | |
| var grid = require('gridlines'); | |
| grid.drawgrid(10,window); |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| $sprites: sprite-map("sprites/*.png"); | |
| $sprites-retina: sprite-map("sprites-retina/*.png"); | |
| @mixin sprite-background($name) { | |
| background-image: sprite-url($sprites); | |
| background-position: sprite-position($sprites, $name); | |
| background-repeat: no-repeat; | |
| display: block; | |
| height: image-height(sprite-file($sprites, $name)); | |
| width: image-width(sprite-file($sprites, $name)); |
| $sprites: sprite-map("sprites/*.png"); | |
| $sprites-retina: sprite-map("sprites-retina/*.png"); | |
| @mixin sprite-background($name) { | |
| background-image: sprite-url($sprites); | |
| background-position: sprite-position($sprites, $name); | |
| background-repeat: no-repeat; | |
| display: block; | |
| height: image-height(sprite-file($sprites, $name)); | |
| width: image-width(sprite-file($sprites, $name)); |
| ;; MODES | |
| (require 'battery) | |
| (setq battery-mode-line-format "#%b %p %t") | |
| (setq battery-load-critical 7) | |
| (setq battery-load-low 25) | |
| (display-battery-mode t) | |
| (require 'network-speed) | |
| (setq network-speed-update-interval 5) |
| #! /bin/sh | |
| # Run this from the folder you want to be the parent of your docs | |
| # By default, generated docs go into | |
| # titanium_mobile/dist/apidoc/ti_mobile_docs/ | |
| # | |
| # This can be changed below | |
| git clone https://github.com/appcelerator/titanium_mobile.git | |
| cd titanium_mobile | |
| sudo apt-get install python-setuptools python-dev |
| #!/bin/bash | |
| # | |
| # Copy data from a Time Machine volume mounted on a Linux box. | |
| # | |
| # Usage: copy-from-time-machine.sh <source> <target> | |
| # | |
| # source: the source directory inside a time machine backup | |
| # target: the target directory in which to copy the reconstructed | |
| # directory trees. Created if it does not exists. | |
| # |
| var app = angular.module('plunker', []); | |
| app.controller('MainCtrl', function($scope, $timeout) { | |
| $scope.save = function(){ | |
| $scope.loading = true; | |
| $timeout(function(){ | |
| $scope.loading = false; | |
| }, 3000); | |
| }; |