I hereby claim:
- I am rvanweerd on github.
- I am rvanweerd (https://keybase.io/rvanweerd) on keybase.
- I have a public key whose fingerprint is 161D 1AA7 A7D0 A60D F4EA 857B 8D6C 0995 52B2 D5F3
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <title>Say it to me!</title> | |
| <link rel="stylesheet" href="http://cheeaun.github.com/cacss/ca.min.css"> | |
| <style> | |
| body{ | |
| text-align: center; | |
| } | |
| input, button{ | |
| font-size: 2em; | |
| width: 70%; |
I hereby claim:
To claim this, I am signing this object:
| function buy_now_in_store() { | |
| echo "</br>Example 1: add to cart and buy now: <br />"; | |
| it_exchange('product', 'purchase-options', array('add-to-cart-edit-quantity' => false, 'buy-now-edit-quantity' => false)); | |
| echo "<br /><hr><br />"; | |
| echo "Example 2: add to cart and buy now and edit quantities: <br />"; | |
| it_exchange('product', 'purchase-options', array('add-to-cart-edit-quantity' => true, 'buy-now-edit-quantity' => true)); | |
| echo "<br /><hr><br />"; | |
| /* This function runs when the spreadsheet is opened and populates a menu option | |
| labelled Zendesk that contains two options (7 days and 30 days) which are tied | |
| to the listed functions | |
| */ | |
| function onOpen() { | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| var entries = [{ | |
| name : "Pull Satisfaction Data (last 7 days, rolling)", | |
| functionName : "getSatisfactionDataLast7" |
| // Get Youtube URL | |
| $yturl = 'https://www.youtube.com/watch?v=HhAKNSsb4t4'; | |
| preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'>]+)/", $yturl, $matches); | |
| $video_id = $matches[1]; | |
| // Get Thumbnail | |
| $file_headers = get_headers( 'http://img.youtube.com/vi/' . $video_id . '/maxresdefault.jpg' ); | |
| $is_404 = $file_headers[0] == 'HTTP/1.0 404 Not Found' || false !== strpos( $file_headers[0], '404 Not Found' ); | |
| $video_thumbnail_url = $is_404 ? 'http://img.youtube.com/vi/' . $youtube_id . '/maxresdefault.jpg' : 'http://img.youtube.com/vi/' . $video_id . '/hqdefault.jpg'; |
| function my_replace_message_with_redirect() { | |
| $user = get_current_user_id(); | |
| if( rcp_is_pending_verification( $user ) ) { | |
| $location = 'https://www.mysite.com/please-verify-your-email-address/'; | |
| echo("<script>location.href = '" . $location . "'</script>"); | |
d3js: Create a table using data from a CSV file.
I this is part of the first node web scraper I created with axios and cheerio. I took out all of the logic, since I only wanted to showcase how a basic setup for a nodejs web scraper would look.
const cheerio = require('cheerio'),
axios = require('axios'),
url = `<url goes here>`;