Skip to content

Instantly share code, notes, and snippets.

View rosswaycaster's full-sized avatar
👨‍💻

Ross Waycaster rosswaycaster

👨‍💻
View GitHub Profile
Titanium.App.addEventListener("playvideo", function (e) {
win11 = Titanium.UI.createWindow({
orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT],
title: "Video",
zIndex: 222222
});
var activeMovie = Titanium.Media.createVideoPlayer({
fullscreen: !0,
autoplay: !0,
@rosswaycaster
rosswaycaster / Temporary Fix for Angular Metoer
Last active November 8, 2015 22:51
Replace the contents of file "meteor-client-side.bundle.min.js" with the code below.. If using Ionic, it will be located here: www/lib/meteor-client-side/dist/meteor-client-side.bundle.min.js
(function(){var _,exports;(function(){exports={}}).call(this);(function(){(function(){var root=this;var previousUnderscore=root._;var breaker={};var ArrayProto=Array.prototype,ObjProto=Object.prototype,FuncProto=Function.prototype;var push=ArrayProto.push,slice=ArrayProto.slice,concat=ArrayProto.concat,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty;var nativeForEach=ArrayProto.forEach,nativeMap=ArrayProto.map,nativeReduce=ArrayProto.reduce,nativeReduceRight=ArrayProto.reduceRight,nativeFilter=ArrayProto.filter,nativeEvery=ArrayProto.every,nativeSome=ArrayProto.some,nativeIndexOf=ArrayProto.indexOf,nativeLastIndexOf=ArrayProto.lastIndexOf,nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeBind=FuncProto.bind;var _=function(obj){if(obj instanceof _)return obj;if(!(this instanceof _))return new _(obj);this._wrapped=obj};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=_}exports._=_}else{root._=_}_.VERSION="1.5.2";var _isArguments=fun
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAgAElEQVR4Xuzdi7EzV5kF0D4RwESAHQEmgsERgCPAE4FxBNgRYEcAjgATASYCcARABAMR9NRh+lJC6L61t9TS6qq/Zopf9/v6rG4btO95jMVFgAABAgQIECBAgAABAgQIENi5wNj5/bt9AgQIECBAgAABAgQIECBAgMAi4PASECBAgAABAgQIECBAgAABArsXEHDs/hEaAAECBAgQIECAAAECBAgQICDg8A4QIECAAAECBAgQIECAAAECuxcQcOz+ERoAAQIECBAgQIAAAQIECBAgIODwDhAgQIAAAQIECBAgQIAAAQK7FxBw7P4RGgABAgQIECBAgAABAgQIECAg4PAOECBAgAABAgQIECBAgAABArsXEHDs/hEaAAECBAgQIECAAAECBAgQICDg8A4QIECAAAECBAgQIECAAAECuxcQcOz+ERoAAQIECBAgQIAAAQIECBAgIODwDhAgQIAAAQIECBAgQIAAAQK7FxBw7P4RGgABAgQIECBAgAABAgQIECAg4PAOECBAgAABAgQIECBAgAABArsXEHDs/hEaAAECBAgQIECAAAECBAgQICDg8A4QIECAAAECBAgQIECAAAECuxcQcOz+ERoAAQIECBAgQIAAAQIECBAgIODwDhAgQIAAAQIECBAgQIAAAQK7FxBw7P4RGgABAgQIECBAgAABAgQIECAg4PAOECBAgAABAgQIECBAgAABArsXEHDs/hEaAAECBAgQIECAAAECBAgQICDg8A4QIECAAAECBAgQIECAAAECuxcQcOz+ERoAAQIECBAgQIAAAQIECBAgIODwDhAgQIAAAQIECBAgQIAAAQK7FxBw7P4RGgABAgQIECBAgAABAgQIECAg4PAOECBAgAABAgQIECBAgAABArsXEHDs/hEaAAECBAgQIECAAAECBAgQICDg8A4QIECAAAECBAgQIECAAAECux
var resizedCanvas = document.createElement("canvas");
var resizedContext = resizedCanvas.getContext("2d");
resizedCanvas.width = "1080";
resizedCanvas.height = "1920";
var canvas = $('canvas')[0];
var context = canvas.getContext("2d");
resizedContext.drawImage(canvas, 0, 0, resizedCanvas.width, resizedCanvas.height);
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @license MIT
*/
(function sortableModule(factory) {
"use strict";
if (typeof define === "function" && define.amd) {
'format cjs';
'use strict';
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['angular', 'jquery-minicolors'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'), require('jquery-minicolors'));
module.exports = 'minicolors';
} else {
@rosswaycaster
rosswaycaster / SCSS.md
Created July 19, 2017 16:59 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso