Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Ejecutar sp retornando un datatable, Ejecutar sp retornando un dataset, Ejecutar sp Update retornando los registros actualizados
0
4172
posted 10 years ago by systemergon
Cuando requerimos hacer consultas que devuelvan todos los registros y al mismo tiempo si se desea filtrar por algunos campos se filtra por los parámetros devueltos
ej. en el
WHERE (U.UnidadAplicativaId = @UnidadAplicativaId OR @UnidadAplicativaId...
0
1660
posted 10 years ago by systemergon
Use ref with getDOMNode() to get the actual html.
Using getBoundingClientRect() on the actual html will give you the width, height, etc.
Below:
specs = ClientRect {} bottom: 269 height: 18 left: 797.546875 right: 1062.609375 top: 251 width: 2...
0
5097
posted 10 years ago by heathbo
Within a react component. How to gain access to the HTML that was just rendered.
Any returned html element that is tagged with a ref, can easily be accessed by it's ref after it's been rendered. In the below case, use this.refs["domainModal"] to...
0
4421
posted 10 years ago by heathbo
The code snippet below can be placed in any template file or anywhere after the Mage is initialized, and there has to be an order placed before.
1
2222
posted 10 years ago by toannguyen
This lite fiuntion is a simple organizator rowcount for all datatables for one single database.
0
1806
posted 10 years ago by achavesm302
When creating a new https://codepad.co/ snippet, the default language will be set to 'JavaScript'.
0
4242
posted 10 years ago by avansare
automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0
4047
posted 10 years ago by daniels
disable automatic starts of photos when connecting devices (YES), aktivate (NO),
automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0
4103
posted 10 years ago by daniels
pivot data. input source query in the form :
+--------+-----------+-------------+-------------+
| name | pivot_fid | pivot_fname | pivot_value |
+--------+-----------+-------------+-------------+
| apple | 1 | is red...
0
2967
posted 10 years ago by ktrout
Removing extensions and trailing slashes in web urls:
"If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to alter the last line from the code above to match...
0
4523
posted 10 years ago by jefferis
This rewrite will not work on WordPress. It forces .htm and .html files that no longer exist to go to the new .php versions of the pages.
0
4828
posted 10 years ago by jefferis
one cross join for each ai in definition of decimal number as sum(ai*10^i)
0
2933
posted 10 years ago by ktrout
Text input Field with Bottom Border only. Border color change at focus
0
2752
posted 10 years ago by 52756
Set the default print settings of preview app on 100%.
Schaltet beim Programm Vorschau die Druckeinstellung standardmässig auf 100%, diese bzw. wieder aus.
0
3958
posted 10 years ago by daniels