Welcome To Snipplr
Everyone's Recent Snippets Tagged design
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Se que es poco... pero es lo unico que me gusta de facebook.
Chome OK; IE OK; Firefox OK;
0
818
posted 15 years ago by marcocs
This example demonstrates a way to control Adobe InDesign from Perl. Tested on MacOS X 10.5.7 and INDD.
0
734
posted 15 years ago by myhd
A simple form with rounded corners, and hopefully not too much markup. You'll need some kind of graphic for the corners of course - I used 20px corners for this.
It's a bit rough, would love to know what some other people think.
1
942
posted 15 years ago by superdeluxesam
Decorator design pattern implemented in Groovy, two implementation are provided, the first is naive and not general, the second is MOP based and can be used in much more scenarios.
0
1090
posted 16 years ago by narkisr
Mediator design pattern implemented in Groovy (based upon http://www.javacamp.org/designPattern/).
1
931
posted 16 years ago by narkisr
Image will be greyscale and will turn colored when hovered over
1
787
posted 17 years ago by sondosia
Removes the ad at the top of a xanga page; place in Webstats below all other codes
This one actually works, even in Opera and Firefox,
2
933
posted 17 years ago by sondosia
BODY {font-size:62.5%}
This takes 16px down to 10px (16 x 0.625 = 10), which apart from being less huge is a nice round number. From now on it’s easy to think in pixels but still set sizes in terms of ems: 1em is 10px, 0.8em is 8px, 1.6em is 16px,...
3
1199
posted 18 years ago by zensir
Note: This doesn't work in multi-threaded environments, check http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B
Singleton class model
then:
SingletonClass *pSC = SingletonClass::get_singleton_instance();
pSC->any_public_function();
or: Si...
4
1134
posted 18 years ago by yuconner