Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to pass a parameter into a method from an onClick method found in the render method.
Majority of the times when you need to do this, your adding it through a loop. In this case, call a function where the item in the loop will automatically be...
0
1213
posted 7 years ago by heathbo
Some examples of the Oracle LISTAGG function, including setting up the tables.
0
1034
posted 7 years ago by bbrumm
Some examples of the NVL2 function in Oracle, including setup table.
0
732
posted 7 years ago by bbrumm
A few examples of the CONCAT function, including setting up the example tables.
0
692
posted 7 years ago by bbrumm
A few examples of the Oracle TO_CHAR function, which works on numbers and dates.
0
626
posted 7 years ago by bbrumm
Aligning a label with a checkbox can be tricky. Here is the HTML and CSS I used to achieve it.
0
1237
posted 7 years ago by mattvbiggs
This is a simple script which downloads the latest "LoRa Server" files from the repository of the user brocaar in GitHub.
Just make the file executable with a "chmod +x script_installer.sh" and run it, the program will give you the latest releases o...
0
864
posted 7 years ago by SoroushBlaster
If you've forgotten a password to an Excel workbook that was created in version 2010 or older. See URL for more details.
0
1130
posted 7 years ago by cueballrawn
This example will CURL a forum and echo it's contents using SSL support.
0
855
posted 7 years ago by Davis34
docker-engine:
Installed: 1.12.3-0~xenial
Candidate: 1.12.3-0~xenial
Version table:
*** 1.12.3-0~xenial 500
500 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
100 /var/lib/dpkg/status
1.12.2-0~...
0
891
posted 8 years ago by droidronin
Renames all the files in the working directory from given regex pattern, in this case removes a series of digits (e.g. \_0004\_) that Photoshop appends when exporting layers.
1
1272
posted 8 years ago by evito
# Slick.php
PHP full page cache with Cloudflare-style page rules. No DNS changes required, just upload the PHP file, configure and then include from your main application controller (e.g. index.php
0
1534
posted 8 years ago by mattnicholson
The Export function will convert an array of objects into a single CSV string.
The Import function will read from a TextReader that has CSV data and convert one data row to an array of strings. Each time this is called, it will convert another data...
0
1717
posted 8 years ago by danh955
https://www.chrisjmendez.com/2016/10/23/swift-load-a-wav-sound-using-avfoundation/
0
1002
posted 8 years ago by chrisaiv
https://www.chrisjmendez.com/2016/10/21/swift-get-random-boolean/
0
1459
posted 8 years ago by chrisaiv
This is a small script to gather some statistics from your Firefox history. First we use sqlite3 to parse the Firefox history database and get the last three months, then we remove all the IP addresses and port numbers and finally we sort and count t...
0
1092
posted 8 years ago by rm1984
C++ is the only language which is used by many of the experts to deal with the programs. There is bit difference between C++ and C. During building up our website of payday loans, we took the help of C++ wizard. He did nice job.
0
1101
posted 8 years ago by paydaylv
Typically when you use Security->requireSecure() to do https redirects, you have to make sure you do pass all data from http to https.
0
784
posted 8 years ago by Pidarasiya
How do you use the elastic-search plugin with cake's native pagination?
0
914
posted 8 years ago by Pidarasiya
This snippet adds credit card select box dropdown values 10 years in future from current year.
0
1249
posted 8 years ago by acosonic
Hey guys,
Sharing my diggernaut's scripts for web scraping, hope it will be useful for you.
This is script for scraping user's accounts without logging in to instagram, so no risk. What you can get with it: all information about user (his full...
0
1143
posted 8 years ago by martinson
Selecting different values from a data validation drop down list will populate the same cell, i.e. it will create a concatenating list separated by commas.
Amend the "If Target.Column" values to set the columns this applies to.
0
1152
posted 8 years ago by cueballrawn