I suspect that some trig calculations could make this very general.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Trying to get a tabGroup working inside a Modal window. My Main app already has a tabGroup, the modal appear over the top. | |
I get the tabGroup to appear, but trying to open new windows just silently fails. | |
*/ | |
var tabGroup = Ti.UI.createTabGroup(); | |
var win1 = Ti.UI.createWindow({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Body tag switching</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("header a").bind("click", function(event){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Mixin for Compass - border-image | |
$border-image([$image-url], [$offsets], [$repeats]) | |
Example: | |
@include border-image(url(../my_image.png), 10, stretch) | |
@include border-image(url(../my_image.png), 10 5 10 5, stretch repeat) | |
---------------------------------------- */ | |
@mixin border-image($url, $offsets, $repeats) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect to your Mac's localhost from within a VMWare virtual machine. | |
- Boot up VMware and fire up your VM (i'm using Windows 7) | |
- Make sure that the VM is using NAT | |
- Fire up the command prompt in Windows and type "ipconfig". IN the resulting text look for your IPv4 address. It will be something like 192.168.xxx.xxx | |
- Now go to your browser in your VM and type that ip address into the url bar but change the last set of digits to be 2 (or 1). | |
- so as an example if your ip was found to be 192.168.213.200 change it to be 192.168.213.2 | |
- Assuming that your localhost is running on your mac you should get your localhost in your VM browser. | |
- If you need to add a non standard port number on the end like 8090 go ahead and do so. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boot up with OSX Disk. | |
Firstly try Disk Utility repair | |
Then if that does not work try (with the drive unmounted) | |
Open terminal and type: | |
/sbin/fsck_hfs -ypr /dev/disk0s2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* To prevent rubber band scrolling in Lion */ | |
body { | |
overflow:hidden; | |
height:100%; | |
} | |
/* Also look to add in -webkit-overflow-scrolling for touch iOS 5 < devices */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-input-placeholder, | |
input:-moz-placeholder { | |
text-align:center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crunch.pubsub = _.extend({}, Backbone.Events); | |
// Hide backbone implementation by aliasing | |
crunch.pubsub.publish = crunch.pubsub.trigger; | |
crunch.pubsub.subscribe = crunch.pubsub.bind; | |
crunch.pubsub.unsubscribe = crunch.pubsub.unbind; |
OlderNewer