RequireJS config may be referenced via:
var config = requirejs.s.contexts._.config;
Given a require such as:
require.config({
property: "value"
});
// ==UserScript== | |
// @name Unicorn Voting 2014 | |
// @description Unicorn voting animations for everyone! FOREVER! (2014 edition) | |
// @version 1.0 | |
// @include http://stackoverflow.com/* | |
// @include http://meta.stackoverflow.com/* | |
// @include http://superuser.com/* | |
// @include http://serverfault.com/* | |
// @include http://stackapps.com/* | |
// @include http://*.stackexchange.com/* |
RequireJS config may be referenced via:
var config = requirejs.s.contexts._.config;
Given a require such as:
require.config({
property: "value"
});
ADOBE.LibraryView = ADOBE.AppView.extend({ | |
initialize: function (isAPIAvailable, isOnline) { | |
ADOBE.LibraryView.__super__.initialize.apply(this, arguments); | |
} | |
}); |
#target "photoshop" | |
if (BridgeTalk.appName == "photoshop") { | |
app.bringToFront(); | |
var inputFolder = Folder.selectDialog("Select the folder containing photos to be resized."), | |
imageSizes = [2048, 1024, 512, 256]; | |
if (inputFolder != null) { | |
var fileList = inputFolder.getFiles(/\.(jpg|jpeg|tif|psd|)$/i); |
<html lang="en" ng-app="app"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=1080"> | |
<title>Cats</title> | |
<style> | |
body { | |
margin: 0; | |
overflow-x: hidden; | |
} |
#!/bin/bash | |
#### Description: Build and install Haxe Foundation hxcpp haxelib for macOS | |
#### from latest GitHub: https://github.com/HaxeFoundation/hxcpp | |
#### Written by: Jason Sturges - jason@jasonsturges.com on 2017-03-29 | |
haxelib remove hxcpp | |
haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git | |
cd /usr/local/lib/haxe/lib/hxcpp/git/tools/hxcpp |
@MenuItem ("Terrain/Object to Terrain") | |
static function Object2Terrain () { | |
// See if a valid object is selected | |
var obj = Selection.activeObject as GameObject; | |
if (obj == null) { | |
EditorUtility.DisplayDialog("No object selected", "Please select an object.", "Cancel"); | |
return; | |
} | |
if (obj.GetComponent(MeshFilter) == null) { |
To start, open up Automator (in the Applications folder) and choose a Service template. From the library choose "Run Shell Script" and drag it across to the workflow area. In the text box paste the following command:
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ];
then
defaults write com.apple.finder AppleShowAllFiles NO
else
defaults write com.apple.finder AppleShowAllFiles YES
fi
killall Finder
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |
Math.log10(n); | |
// Equivalent polyfill: | |
Math.log(n) * Math.LOG10E |