View 0. notes.md
View pythagorean-triples.js
// -----------------------------------------------------------------------------
// utils
function isPrime(value)
{
for(var i = 2; i < value; i++)
{
if(value % i === 0)
{
return false;
View rollup-jquery.js
/**
* Basic rollup setup for jQuery plugin development:
*
* - watch src folder
* - transpile ES6 to ES5
* - create development version (source maps)
* - create production version (minified)
*/
// dependencies
View console.txt
Foo > 1
Bar > 1
Bar (doubled) > 2
Bar (doubled, default message) > New value is: 2
Bar (doubled, custom message) > New custom value is: 2
Bar (doubled, default message, uppercase) > NEW VALUE IS: 2
Bar (doubled, custom message, uppercase) > NEW CUSTOM VALUE IS: 2
View MPlayerX Launcher.app
on run
do shell script "open -n /Applications/MPlayerX.app"
tell application "MPlayerX" to activate
end run
on open theFiles
repeat with theFile in theFiles
do shell script "open -na /Applications/MPlayerX.app " & quote & (POSIX path of theFile) & quote
end repeat
tell application "MPlayerX" to activate
View jquery.upgrade-columns.js
var $ = jQuery;
/**
* Upgrade Columns jQuery plugin
*
* Upgrades colgroup formatting to CSS styles
*/
$.fn.upgradeColumns = function()
{
// variables
View ratio.js
Vue.component('ratio', {
template:'<div class="ratio" :style="style"><slot></slot></div>',
props:
{
width:
{
default :512,
type :[String, Number],
View gulpfile.js
// ---------------------------------------------------------------------------------
// libs
var gulp = require('gulp'),
// tools
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
sourcemaps = require('gulp-sourcemaps'),
livereload = require('gulp-livereload'),
View CopyFrameTest.as
package dev.camera
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.geom.Matrix;
import flash.geom.Rectangle;