Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
| DROP PROCEDURE IF EXISTS pivot_user_preferences; | |
| DELIMITER $$ | |
| CREATE PROCEDURE pivot_user_preferences(IN user_id INT) | |
| BEGIN | |
| DECLARE done INT DEFAULT FALSE; | |
| DECLARE definition_label CHAR(255); | |
| DECLARE label_cursor CURSOR FOR SELECT DISTINCT label FROM example_db.user_preferences; | |
| DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; |
| @echo off | |
| @rem ================== | |
| @rem Source: | |
| @rem https://gist.github.com/jcppkkk/8330314 | |
| @rem Description: | |
| @rem Install context menu to allow user opens file with Sublime Text as User or Admin, or Open Folder with Sublime Text. | |
| @rem Usage: | |
| @rem Download this .bat file to in Sublime Text's installation folder. | |
| @rem Execute this batch file. It will download elevate codes and setup context menu. | |
| @rem ================== |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| var LINE = require('./line.js'); | |
| var line = new LINE(); | |
| var email = 'your email'; | |
| var password = 'your password'; | |
| line.login(email, password, function(error, result) { | |
| if (error) { | |
| return; | |
| } |
| var isPortTaken = function(PORT, callback) { | |
| var net = require('net') | |
| var tester = net.createServer() | |
| tester.once('error', function (err) { | |
| if (err.code == 'EADDRINUSE') { | |
| callback(null, true) | |
| } else { | |
| callback(err) | |
| } | |
| }) |
| /** | |
| * Provides requestAnimationFrame in a cross browser way. | |
| * @author paulirish / http://paulirish.com/ | |
| */ | |
| if ( !window.requestAnimationFrame ) { | |
| window.requestAnimationFrame = ( function() { | |
| return window.webkitRequestAnimationFrame || |