This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
a := "hello" | |
b := 6 | |
fmt.Println("a + b = ", a + b) |
This file contains hidden or 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 solution = (num1, num2) => { | |
return (num3) => { | |
return num1 + num2 + num3; | |
}; | |
}; |
This file contains hidden or 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
package main | |
func solution9(num1, num2 int) func(num3 int) int { | |
return func(num3 int) int { | |
return num1 + num2 + num3 | |
} | |
} |
This file contains hidden or 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
// index.js | |
ZiggeoApi.token = "APP_TOKEN"; | |
var init = () => { | |
var element = document.getElementById('recorder-embedding'); | |
ZiggeoApi.V2.Recorder.findByElementPromise(element).success(mount); | |
} | |
This file contains hidden or 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
//index.html | |
<html lang="en"> | |
<head> | |
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v2-stable/ziggeo.css" /> | |
<script src="//assets-cdn.ziggeo.com/v2-stable/ziggeo.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
// index.js | |
const getVideos = () => { | |
fetch("/videoTokens") | |
.then(res => res.json()) | |
.then(myJson => { | |
const vidsToDisplay = myJson.reduce((acc, token) => { | |
acc += `<div class= |
This file contains hidden or 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
// server.js | |
app.get('/videoTokens', (req, res) => { | |
ZiggeoSdk.Videos.index({}, (vidInfos) => { | |
const videos = vidInfos.reduce((acc, vidInfo) => { | |
acc.push(vidInfo.token); | |
return acc; | |
}, []); |
This file contains hidden or 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
// server.js | |
app.get('/videoTokens', (req, res) => { | |
ZiggeoSdk.Videos.index({}, (vidInfos) => { | |
const videos = vidInfos.reduce((acc, vidInfo) => { | |
acc.push(vidInfo.token); | |
return acc; | |
}, []); |
This file contains hidden or 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
// server.js | |
Ziggeo = require('ziggeo'); | |
var ZiggeoSdk = new Ziggeo('YOUR APP TOKEN', 'YOUR_APP_PRIVATE_KEY', 'YOUR_APP_ENCRYPTION_KEY'); |
This file contains hidden or 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
// index.html | |
<ziggeorecorder id="recorder-embedding" ziggeo-width=640 ziggeo-height=480 ziggeo-theme="minimalist" ziggeo-themecolor="red"></ziggeorecorder> |