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 casper = require('casper').create({viewportSize: {width: 960, height: 600}}); | |
var fs = require('fs'); | |
casper.start('https://news.ycombinator.com/', function() { | |
var now = this.fetchText('#hnmain'); | |
var old = fs.read('old.txt'); | |
if (old !== now) { | |
casper.open('http://text-compare.com/', { | |
method: 'post', | |
data: {'text1': old, 'text2': now} |
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
// ==UserScript== | |
// @name Collapse diff | |
// @namespace http://no.one/ | |
// @version 0.2 | |
// @description Enter something useful | |
// @author You | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== |
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 matrix = [ | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 1, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0] | |
]; | |
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 matrix = [ | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 0, 0, 0], | |
[0, 0, 0, 1, 1, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0] | |
]; | |
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 UnityEditor; | |
using UnityEngine; | |
using System.Collections; | |
public class DuplicateToAllScenesMenu : MonoBehaviour { | |
// Add a menu item called "Double Mass" to a Rigidbody's context menu. | |
[MenuItem ("CONTEXT/Transform/DuplicateToAllScenes")] | |
static void DuplicatePlz (MenuCommand command) { | |
EditorApplication.SaveCurrentSceneIfUserWantsTo (); |
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
(function ($) { | |
var dragging = null; | |
$(".style-editor").on("mousedown.wf", ".tick", function (e) { | |
var $ghost = $("<div class='drag-ghost'>").appendTo('body').css( | |
'cursor', 'ns-resize' | |
); | |
var $input = $(this).closest('.input-control').find('input'); | |
dragging = { |
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
<style> | |
@media all and (max-device-width:760px) { | |
.pagetop b { | |
display:block; | |
} | |
.pagetop { | |
padding-top: 10px; | |
padding-bottom: 10px; |
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
// ==UserScript== | |
// @name Amara Plus | |
// @namespace http://rapedinheaven.com | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.amara.org/es/onsite_widget/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
var getByClass = function (sel, parent) { |
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
Show hidden characters
[ | |
{ | |
"args": | |
{ | |
"extend": false, | |
"to": "bol" | |
}, | |
"command": "move_to" | |
}, | |
{ |
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
(function () { | |
var addMethod = function (obj, name, fn) { | |
obj[name] = function () { | |
var undef; | |
var result = fn.apply(obj, arguments); | |
if (result === undef) { | |
result = this; | |
} | |
return result; |