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
# This is to get my awesome monkey prompt. | |
umask 002 | |
#PS1='[\h]$ ' | |
export PS1="\w \`if [ \$? = 0 ]; then echo -e '\[\e[01;32m\]\n\xF0\x9F\x90\xB5 '; else echo -e '\[\e[01;31m\]\n\xF0\x9F\x90\xB5 '; fi\` \[\e[01;34m\]\[\e[00m\]" |
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 express from 'express'; //DKC | |
import { handleError, sanitize } from '../helpers/routing.js'; | |
import { contextHeader, getAppContext } from '../helpers/cipher.js'; | |
import session from '../session.js'; | |
const router = express.Router(); | |
/* | |
* Home Page - Zoom App Launch handler | |
* this route is used when a user navigates to the deep link |
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 express from 'express'; | |
import axios from 'axios'; | |
import compression from 'compression'; | |
import cookieParser from 'cookie-parser'; | |
import debug from 'debug'; | |
import helmet from 'helmet'; | |
import logger from 'morgan'; | |
import { dirname } from 'path'; | |
import { fileURLToPath, URL } from 'url'; |
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
exports.handler = function( event, context ) { | |
var https = require( 'https' ); | |
var url = 'https://api.openweathermap.org/data/2.5/forecast?zip=78745,us&APPID=****APIKEY****' | |
https.get( url, function( response ) { | |
var data = ''; | |
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
curl https://api.clarify.io/v1/search?query=dorothy \ | |
--header "Authorization: Bearer myapikey" |
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
curl --data "media_url=http://media.clarify.io/audio/books/dorothyandthewizardinoz_01_baum_64kb.mp3" \ | |
--data "name=Dorothy and the Wizard of Oz" https://api.clarify.io/v1/bundles \ | |
--X POST --header "Authorization: Bearer myapikey" |
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
{ | |
"bundle_id": "abcde12345", | |
"created": "2015-03-04T05:03:04.292Z", | |
"updated": "2015-05-16T20:39:37.508Z", | |
"_class": "Insights", | |
"_links": { | |
"curies": [ | |
{ | |
"href": "/docs/insights/{rel}", | |
"name": "insight", |
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
<video id="clarify_video" class="video-js vjs-default-skin" | |
controls preload="auto" width="640" height="264" | |
data-setup='{"example_option":true}'> | |
<source src="http://example.com/clarify-video.mp4" type='video/mp4' /> | |
<source src="http://example.com/clarify-video.webm" type='video/webm' /> | |
<source src="http://example.com/clarify-video.ogv" type='video/ogg' /> | |
<track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default> | |
</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
<link href="http://vjs.zencdn.net/5.0/video-js.min.css" rel="stylesheet"> | |
<script src="http://vjs.zencdn.net/5.0/video.min.js"></script> |
NewerOlder