This file contains hidden or 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
<!DOCTYPE html> | |
<html ng-app="webApp"> | |
<head> | |
<title>Title</title> | |
<meta charset="utf-8"> | |
<script src="jquery-1.11.3.min.js"></script> | |
<script src="jquery-ui-1.11.4/jquery-ui.min.js"></script> | |
<!-- http://ghusse.github.io/jQRangeSlider/ --> | |
<script src="jQRangeSlider-5.7.1/jQDateRangeSlider-min.js"></script> |
This file contains hidden or 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
// Change font (ctrl a) | |
var doc = context.document, | |
selection = context.selection, | |
font_name = [doc askForUserInput:"Font name:" initialValue:"SF UI Display"]; | |
function check_layer(layer){ | |
log(layer) | |
var className = layer.className() | |
log("Checking layer " + layer + " of klass: " + className) | |
if (className == "MSTextLayer") { |
This file contains hidden or 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
// Select All Text Layers | |
var page = [doc currentPage], | |
layers = [page children] | |
[page deselectAllLayers] | |
var loop = [layers objectEnumerator] | |
while (layer = [loop nextObject]) { | |
if([layer className] == "MSTextLayer") { |
This file contains hidden or 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
// ==UserScript== | |
// @name Trello export card titles in a list | |
// @namespace http://www.mfyz.com/ | |
// @version 1.0 | |
// @description Export card names in a list | |
// @match https://trello.com/* | |
// @match https://*.trello.com/* | |
// @copyright 2017+, Mehmet Fatih Yildiz | |
// ==/UserScript== |
This file contains hidden or 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
cmInstance.state.search = { | |
query: "search query", | |
lastQuery: null, | |
posFrom: null, | |
posTo: null, | |
overlay: null | |
}; | |
cmInstance.execCommand('findNext'); |
This file contains hidden or 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 | |
/* | |
Taken from: https://www.if-not-true-then-false.com/2010/php-class-for-coloring-php-command-line-cli-scripts-output-php-output-colorizing-using-bash-shell-colors/ | |
Short and simple form: | |
Before: \033[42m | |
After: \033[0m |
This file contains hidden or 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
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Basic_2D_animation_example --> | |
<script id="vertex-shader" type="x-shader/x-vertex"> | |
attribute vec2 aVertexPosition; | |
uniform vec2 uScalingFactor; | |
uniform vec2 uRotationVector; | |
void main() { | |
vec2 rotatedPosition = vec2( |
This file contains hidden or 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
module.exports = function (grunt) { | |
// measures the time each task takes | |
require('time-grunt')(grunt); | |
grunt.loadNpmTasks('grunt-replace'); | |
grunt.initConfig({ | |
// Store your Package file so you can reference its specific data whenever necessary | |
pkg: grunt.file.readJSON('package.json'), | |
This file contains hidden or 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
const express = require('express') | |
const path = require('path') | |
const ig = require('instagram-node').instagram() | |
const cookieParser = require('cookie-parser') | |
// Set the config values below inline or from environment variables | |
const PORT = process.env.PORT || 8110 | |
const IG_CLIENT_ID = process.env.IG_CLIENT_ID | |
const IG_CLIENT_SECRET = process.env.IG_CLIENT_SECRET |
This file contains hidden or 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
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const path = require('path'); | |
const multer = require('multer'); | |
const cloudinary = require('cloudinary'); | |
const PORT = process.env.PORT || 4004; | |
const storage = multer.diskStorage({ | |
destination: function (req, file, cb) { | |
cb(null, 'uploads/') |