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
| (function(){ | |
| //load jQuery | |
| var loadjq = document.createElement("script"); | |
| loadjq.type = "text/javascript"; | |
| loadjq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; | |
| document.body.appendChild(loadjq); | |
| })(); | |
| function addinfo(){ | |
| var vi = $(".vm-video-item"); |
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
| function createList(){ | |
| var a = document.getElementsByClassName("vm-video-title-content"); | |
| var n = a.length; | |
| for(var i = 0; i < n; i++){ | |
| var b = a[i]; | |
| var c = b.href; | |
| var d = b.innerText; | |
| console.log(d); | |
| console.log(c); |
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
| // モジュールロード | |
| var http = require('http'); | |
| var request = require('request'); | |
| var fs = require('fs'); | |
| var EventEmitter = require('events').EventEmitter; | |
| var domain = require('domain'); | |
| var d = domain.create(); | |
| d.on("error", function(err){ | |
| console.error("cws error", err); |
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
| (function($){ | |
| var Plugin = function($t, settings){ | |
| this.$el = $t; | |
| this.settings = settings; | |
| this.init(); | |
| }; | |
| Plugin.prototype = { | |
| init: function(){ | |
| console.log("init", this, arguments); |
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
| #!/bin/bash | |
| # image_00.jpg 〜 image_09.jpg を再圧縮して上書きする | |
| # --max に与えられる ${1} は 0〜100の値を持つ | |
| # usage resize.sh 100 | |
| for i in {0..9}; do | |
| jpegoptim --strip-all --max=${1} image_0${i}.jpg | |
| done |
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
| console.log("start"); | |
| var fs = require('fs'); | |
| const MINECRAFT_PATH = "<need specified your minecraft dir path>/minecraft/"; | |
| const SPATH = MINECRAFT_PATH + "assets/objects/"; | |
| const DPATH = "<need specified your destination dir path>/"; | |
| var json = require(MINECRAFT_PATH + 'assets/indexes/1.8.json'); | |
| var o = json.objects; |
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
| var Panel = function(el){ | |
| this.el = $(el); | |
| this.view = this.el.find('.is-onlive').text(); | |
| }; | |
| var $cll = $('.contentlist-list'); | |
| var ary = []; | |
| $cll.find('li').each(function(){ | |
| var $self = $(this); |
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
| # use data from MIC | |
| # http://www.soumu.go.jp/denshijiti/code.html | |
| # | |
| # CSV data format | |
| # > prefecture, city | |
| # Related: 月壱関東脱出計画 | |
| # https://peraichi.com/landing_pages/view/escapefromkanto | |
| # 仕様 |
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
| var selection = context.selection | |
| if(selection.count() == 0){ | |
| doc.showMessage("Please select something."); | |
| } else { | |
| for(var i = 0; i < selection.count(); i++){ | |
| var layer = selection[i]; | |
| var layerFrame = layer.frame() | |
| log(layerFrame.width()) | |
| layerFrame.setWidth(24) | |
| layerFrame.setHeight(24) |
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
| // schema: **************************************************************************** | |
| { | |
| "type": "object", | |
| "properties": { | |
| "fuga": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { |