Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Filters a dynamics CRM 2011 subgrid...implementation example included at bottom
0
964
posted 8 years ago by skinnymoore
Conexión a base de datos con los parametros que llega del contructor
0
842
posted 8 years ago by systemergon
Ejecutar sp retornando un datatable, Ejecutar sp retornando un dataset, Ejecutar sp Update retornando los registros actualizados
0
870
posted 8 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
600
posted 8 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
1382
posted 8 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
936
posted 8 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
964
posted 8 years ago by toannguyen
This lite fiuntion is a simple organizator rowcount for all datatables for one single database.
0
643
posted 8 years ago by achavesm302
When creating a new https://codepad.co/ snippet, the default language will be set to 'JavaScript'.
0
909
posted 8 years ago by avansare
automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0
743
posted 8 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
753
posted 8 years ago by daniels
pivot data. input source query in the form :
+--------+-----------+-------------+-------------+
| name | pivot_fid | pivot_fname | pivot_value |
+--------+-----------+-------------+-------------+
| apple | 1 | is red...
0
745
posted 8 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
953
posted 8 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
1221
posted 8 years ago by jefferis
one cross join for each ai in definition of decimal number as sum(ai*10^i)
0
738
posted 8 years ago by ktrout