Welcome To Snipplr
Everyone's Recent Snippets Tagged load
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In...
0
772
posted 9 years ago by johansonkatherine
You can put the user's cursor inside a text box or put focus on select box as soon as your page is loaded. This helps ensure that visitors do not 'overlook' an important form item on your site and this snippet only uses one line of code!
0
473
posted 9 years ago by apphp-snippets
Set the last parameter to the number of cores.
End with 'killall perl'
0
399
posted 10 years ago by beaknit
With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list.
Here is my own im...
0
1092
posted 11 years ago by Huskie
From time to time I need a Ajax function to not cashe the template it load. I only have notest this problem in IE.
1
513
posted 11 years ago by Tyde
A simple, thread-safe wrapper class for lazy-loading data into an instance on-demand (i.e. when the instance is first accessed.)
Usage:
LazyLoader<Foo> l = new LazyLoader<Foo>(() => Foo.LoadFromDataSource("DB Connection String"));
// For acc...
2
745
posted 11 years ago by stewartrae
These two classes demonstrate how to create an external font SWF that contains embedded fonts, and how to then load that external font SWF and access and use the fonts inside it.
0
909
posted 11 years ago by adrianparr
This font SWF was created using the handy tool FontSwffer (http://blog.madebypi.co.uk/2011/02/28/fontswffer-1-1/)
0
613
posted 11 years ago by adrianparr
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0
1904
posted 11 years ago by adrianparr
Tiny script to write a daily logfile with the serverload. Can be run every X minutes using a cron for example.
Result in logfile:
13.40 | 2.45 2.45 2.43
13.45 | 1.62 2.02 2.25
0
450
posted 11 years ago by remko
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
619
posted 12 years ago by disas
Simple manager that loads display objects via single method call and caches loaded objects
0
575
posted 12 years ago by kuril
Proper way of loading libs such as jQuery from Google's CDN. Place these JavaScripts at the bottom for fast page loading. To target different versions, you can be more specific if you want; eg. /1.4/ or even /1.4.4/.
(NOTE: you may either use http...
0
713
posted 12 years ago by hced
use bulk load to save a large SAS dataset into oracle/DB2/SQL Server/ Teradata for joining with other tables etc..
Alternate link : http://www2.sas.com/proceedings/sugi29/106-29.pdf
0
624
posted 12 years ago by mprabhuram
When injecting via jQuery HTML content which contains script tags referencing external scripts, which are then referenced via scripting elsewhere in the injected HTML, some browsers (Chrome) will not wait for the external scripts to load causing the...
2
692
posted 12 years ago by harikaram
A more flexible version of the 'official' Facebook feed dialog example.
"The Feed Dialog prompts the user to publish an individual story to a profile's feed. This does not require any extended permissions."
"The following simple JavaScript exam...
0
601
posted 12 years ago by coprolit
A simple PHP application for counting how many views a page gets.
0
435
posted 12 years ago by FelixT
jQuery
jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist
0
667
posted 12 years ago by brandonjp
Related Categories: jQuery, Tips
We've all heard the best practices recommendation to load jQuery (or other JavaScript libraries) from a CDN, such as Google's for performance reasons. But what happens if, in the rare chance, Google's network is do...
2
609
posted 12 years ago by stancox