Skip to content

Instantly share code, notes, and snippets.

<style>
/* Toggle Button */
.cm-toggle input {
-webkit-appearance: none;
-webkit-tap-highlight-color: transparent;
position: relative;
border: 0;
outline: 0;
cursor: pointer;
margin: 10px;
@SaulBurgos
SaulBurgos / download.js
Created February 11, 2021 01:39 — forked from mkaminsky11/download.js
How to manipulate Google Drive files
/*
Download a file
*/
function downloadFile(fileId) {
var request = gapi.client.drive.files.get({
'fileId': fileId
});
request.execute(function(resp) {
window.location.assign(resp.webContentLink);
});
@SaulBurgos
SaulBurgos / practice..html
Created November 29, 2019 00:21
testing aframe-motion-capture-components
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Practice: Name</title>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-motion-capture-components/dist/aframe-motion-capture-components.min.js"></script>
@SaulBurgos
SaulBurgos / gist:7ab6341988255c9d35b44ccf9cf1b21c
Created January 17, 2018 22:34
AWS code example to slice image
'use strict';
console.log('Loading function');
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
var async = require('async');
//http://aheckmann.github.io/gm/docs.html
var gm = require('gm').subClass({ imageMagick: true }); // Enable ImageMagick integration.
var util = require('util');
/*!
* ngTagsInput v2.3.0
* http://mbenford.github.io/ngTagsInput
*
* Copyright (c) 2013-2015 Michael Benford
* License: MIT
*
* Generated at 2015-03-24 00:49:44 -0300
*/
(function() {
@SaulBurgos
SaulBurgos / jquery.bootgrid.js
Created September 12, 2015 14:57
jquery bootgrid 1.3.1, Added allow html in row
/*!
* jQuery Bootgrid v1.3.1 - 09/11/2015
* Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT
*/
;(function ($, window, undefined)
{
/*jshint validthis: true */
"use strict";
@SaulBurgos
SaulBurgos / jquery.bootgrid.js
Created September 10, 2015 22:34
jQuery Bootgrid v1.3.0 Pagination without Hash , only use a custom property called goto
/*!
* jQuery Bootgrid v1.3.0 - 09/04/2015
* Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT
*/
;(function ($, window, undefined)
{
/*jshint validthis: true */
"use strict";