Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Conexión a base de datos con los parametros que llega del contructor
0
3264
posted 9 years ago by systemergon
Ejecutar sp retornando un datatable, Ejecutar sp retornando un dataset, Ejecutar sp Update retornando los registros actualizados
0
3263
posted 9 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
1027
posted 9 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
4116
posted 9 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
3406
posted 9 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
1495
posted 9 years ago by toannguyen
This lite fiuntion is a simple organizator rowcount for all datatables for one single database.
0
1100
posted 9 years ago by achavesm302
When creating a new https://codepad.co/ snippet, the default language will be set to 'JavaScript'.
0
3367
posted 9 years ago by avansare
automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0
3225
posted 9 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
3227
posted 9 years ago by daniels
pivot data. input source query in the form :
+--------+-----------+-------------+-------------+
| name | pivot_fid | pivot_fname | pivot_value |
+--------+-----------+-------------+-------------+
| apple | 1 | is red...
0
2208
posted 9 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
3540
posted 9 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
3843
posted 9 years ago by jefferis
one cross join for each ai in definition of decimal number as sum(ai*10^i)
0
2167
posted 9 years ago by ktrout
Text input Field with Bottom Border only. Border color change at focus
0
1758
posted 9 years ago by 52756