This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc = app.activeDocument; | |
var symbolCount = doc.symbols.length; | |
if (symbolCount >= 1) { | |
if (confirm("Are all your layers hidden?")) { | |
// choose directory | |
var dest = Folder(doc.path).selectDlg(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc = app.activeDocument; | |
var symbolCount = doc.symbols.length; | |
if (symbolCount >= 1) { | |
if (confirm("Are all your layers hidden?")) { | |
// choose directory | |
var dest = Folder(doc.path).selectDlg(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var Elixir = require('laravel-elixir'); | |
var changed = require('gulp-changed'); | |
var imagemin = require('gulp-imagemin'); | |
var pngquant = require('imagemin-pngquant'); | |
var Task = Elixir.Task; | |
Elixir.extend('images', function (src, output) { | |
new Task('images', function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var Elixir = require('laravel-elixir'); | |
var changed = require('gulp-changed'); | |
var svgstore = require('gulp-svgstore'); | |
var Task = Elixir.Task; | |
Elixir.extend('sprites', function (src, output) { | |
new Task('sprites', function () { | |
return gulp.src(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.textWidth = function (text, font, transform) { | |
if (!$.fn.textWidth.fakeEl) $.fn.textWidth.fakeEl = $('<span>').hide().appendTo(document.body); | |
$.fn.textWidth.fakeEl.text(text || this.val() || this.text()) | |
.css('font', font || this.css('font')) | |
.css('text-transform', transform || this.css('text-transform')); | |
return $.fn.textWidth.fakeEl.width(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.textHeight = function (text, font, transform) { | |
if (!$.fn.textWidth.fakeEl) $.fn.textWidth.fakeEl = $('<span>').hide().appendTo(document.body); | |
$.fn.textWidth.fakeEl.text(text || this.val() || this.text()) | |
.css('font', font || this.css('font')) | |
.css('text-transform', transform || this.css('text-transform')); | |
return $.fn.textWidth.fakeEl.height(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
/// <summary> | |
/// Scene auto loader. | |
/// </summary> | |
/// <description> | |
/// This class adds a File > Scene Autoload menu containing options to select | |
/// a "master scene" enable it to be auto-loaded when the user presses play | |
/// in the editor. When enabled, the selected scene will be loaded on play, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Laravel\Lumen\Concerns; | |
use Error; | |
use Exception; | |
use ErrorException; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Symfony\Component\Debug\Exception\FatalErrorException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Contracts\Support\Htmlable; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Debug\Dumper; | |
use Illuminate\Support\HtmlString; | |
use Illuminate\Support\Str; | |
if (! function_exists('append_config')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |
OlderNewer