This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I believe that scraping data from a website is not illegal. It might violate TOS. Reproduction is almost certainly illegal. | |
Made as proof of concept. | |
Thanks. | |
*/ | |
var fs = require('fs'); | |
var fn = "/Users/chris.allick/Documents/NODEJS/data.txt"; | |
/* | |
DONE - "http://www.canneslionsarchive.com/winners/entries/cannes-lions/branded-content-and-entertainment/", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#import <AWSS3/AWSS3.h> | |
//#import <AWSRuntime/AWSRuntime.h> | |
//import those in your .h file and | |
//add the awss3 and awsruntime framework from the client | |
//download from Amazon | |
AmazonS3Client *s3Client = [[AmazonS3Client alloc] initWithAccessKey:@"Key_Goes_here" withSecretKey:@"Secret_Goes_Here"]; | |
NSString *imageName = [NSString stringWithFormat:@"%@.png", @"cpa"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Base64 Demo</title> | |
<meta charset="utf-8"> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' type='text/javascript'></script> | |
<script src='https://javascriptbase64.googlecode.com/files/base64.js' type='text/javascript'></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'); | |
var twilio = require('twilio'); | |
var accountSid = '_snip_'; // enter | |
var authToken = '_snip_'; // enter | |
var your_zip_code = "90094"; // change | |
var twilio = require('twilio'); | |
var client = new twilio(accountSid, authToken); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addSourceToVideo(element, src, type) { | |
var source = document.createElement('source'); | |
source.src = src; | |
source.type = type; | |
element.appendChild(source); | |
} | |
var video; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# run from root | |
# | |
# writes to a folder "videos" folder needs to be created. | |
# requires ffmpeg installed | |
# | |
# $>ruby gifToMP4.rb | |
# | |
# | |
# references: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Contentful dependencies --> | |
<link rel="stylesheet" href="https://contentful.github.io/ui-extensions-sdk/cf-extension.css"> | |
<script src="https://unpkg.com/contentful-ui-extensions-sdk@3"></script> | |
<!-- AWS JS SDK --> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.120.0.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Run 'nvm use' automatically every time there's | |
# a .nvmrc file in the directory. Also, revert to default | |
# version when entering a directory without .nvmrc | |
# | |
enter_directory() { | |
if [[ $PWD == $PREV_PWD ]]; then | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-lambda' # https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/ruby/example_code/lambda/aws-ruby-sdk-lambda-example-run-function.rb | |
require 'json' | |
require 'sendgrid-ruby' | |
include SendGrid # https://github.com/sendgrid/sendgrid-ruby | |
Encoding.default_external = 'UTF-8' | |
class EmailSender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-lambda' # https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/ruby/example_code/lambda/aws-ruby-sdk-lambda-example-run-function.rb | |
require 'json' | |
require 'sendgrid-ruby' | |
include SendGrid # https://github.com/sendgrid/sendgrid-ruby | |
Encoding.default_external = 'UTF-8' | |
class EmailSender |
NewerOlder