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
//Create a container view | |
var container = Ti.UI.createView({ | |
width:200, | |
height:200, | |
top:10, | |
left:10 | |
}); | |
//Create a view for our content |
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
var winMain = Titanium.UI.createWindow({ | |
title:'Main', | |
backgroundColor:'#fff' | |
}); | |
var winHolder = Titanium.UI.createWindow({ | |
backgroundColor: winMain.backgroundColor | |
}); | |
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> | |
<head> | |
<meta charset=utf-8/> | |
<title>YUI Plugin: gallery-node-accordion </title> | |
<link rel="stylesheet" type="text/css" | |
href="http://yui.yahooapis.com/combo?3.2.0/build/cssfonts/fonts-min.css&3.2.0/build/cssreset/reset-min.css&3.2.0/build/cssbase/base-min.css"> | |
<link type="text/css" rel="stylesheet" | |
href="http://yui.yahooapis.com/gallery-2010.05.21-18-16/build/gallery-node-accordion/assets/skins/sam/gallery-node-accordion.css"/> | |
<style> |
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
%REM | |
Agent agentCreateThread | |
Created Jan 25, 2011 by Joacim Boive/Infoware | |
Description: | |
Create semantic discussion threads for a Lotus Notes threaded view. | |
%END REM | |
Option Public |
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
var cart = sessionScope.cart || [], | |
item = {}; | |
item.unid = rowData.getColumnValue('unid'); | |
item.price = viewScope.price; | |
item.title = rowData.getColumnValue('title'); | |
cart.push(item); | |
sessionScope.cart = cart; |
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
// IE7 support for querySelectorAll in 226 bytes... It's a little slow but better than a 20kb solution when you need something cross platform and lightweight. | |
(function(d){d=document,a=d.styleSheets[0]||d.createStyleSheet();d.querySelectorAll=function(e){a.addRule(e,'f:b');for(var l=d.all,b=0,c=[],f=l.length;b<f;b++)l[b].currentStyle.f&&c.push(l[b]);a.removeRule(0);return c}})() |
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
/* | |
The idea is to just use 2 views that can hold whatever (in my case images). | |
Swipe:ing left/right will move the views that is currently hidden accordingly, making it seem like it's an infinite number of views at any direction. | |
This should be a very memory efficient approach. | |
The code below requires Appcelerator Titanium: http://appcelerator.com | |
*/ | |
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
twtTranslate.enc({"you are":"U're","it is":"its","you":"U", "todo":"2Do"," - ":"-","see":"c", "zero":"0", "one":"1", "two":"2", "three":"3", "four":"4", "five":"5", "six":"6", "seven":"7", "eight":"8", "nine":"9", "ten":"10", "for":"4", " and ":" & ", "at":"@", "great":"gr8", " how to ":" HowTo ", "JavaScript":"JS", "message":"msg", "into":"in2", "before":"b4", "star":"★","!shrug":"¯\_(ツ)_/¯"}) |
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
/** | |
* Problems with table borders in IE7 | |
*/ | |
td{ | |
padding: 3%; | |
border: 2px solid red; | |
} |
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
Option Public | |
Option Declare | |
Use "helpers" | |
Sub Initialize | |
Dim s As New NotesSession | |
Dim db As NotesDatabase | |
Dim vRequest As NotesView | |
Dim vMatchVacancy As NotesView | |
Dim vcRequest As NotesViewEntryCollection | |
Dim vcMatchVacancy As NotesViewEntryCollection |
OlderNewer