Skip to content

Instantly share code, notes, and snippets.

View scheduled email-task file
```
{
"to": "daniel@example.com",
"subject": "email subject" ,
"url": "https://my-bi-tool.com/daily_report.html",
"schedule": "0 10 * * *"
}
```
View Build Function
js
var product1=!1;
function build(){
if(product1){
$("#canvas").find('.product1').remove();
$("#canvas").html('<div class="threesixty product1"style="text-align:center"><div class="threesixtyInner"><div class="spinner"><span>0%</span></div><ol class="threesixty_images"></ol></div></div>');
};
$('.threesixtyInner').css({ 'padding-bottom': `${ 100 / window.aspectRatio }%` });
product1 = $('.product1').ThreeSixty({
View Widget Function
js
window.totalFramesFromVid = 100;
function widget(){
window.cloudinary.openUploadWidget({ cloud_name: 'xxxxxxx', upload_preset: '3dImage', client_allowed_formats: ['mov','mp4','webm'], sources: ['local','camera']},
function(error, result) {
if(!result)return;
//console.log(result)
window.result=result[0];
window.vidLength = window.result.duration;
window.frameGap = (window.vidLength/window.totalFramesFromVid).toFixed(2);
View index.html file with UI container for an upload button
_index.html_
<body id="cl-container" style="background-color:#142335;" >
<nav class="navbar navbar-inverse clearfix">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#"><img src="//res.cloudinary.com/cloudinary/image/upload/c_scale,w_200/v1/logo/for_dark_bg/cloudinary_logo_for_dark_bg.png" alt="Cloudinary"/></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<h2 class="flushtop" style="margin-left:40%">360 Product Viewer</h2>
View gist:6f7da148bcdcdcf5f4c4b06b86b35c93
_index.html_
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="//cloudydesk.com/theme/css/cleanslate.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="//cloudydesk.com/theme/css/bootstrap-cloudinary-theme.css">
View Gallery Data Source
@Maharony
Maharony / Storyboard.txt
Created Feb 26, 2018
Story board Android App
View Storyboard.txt
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_margin="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.ekene.imageboardcloudinary.MainActivity">