start new:
tmux
start new with session name:
tmux new -s myname
| // | |
| // Example usage: phantomjs screenshot.js http://yahoo.com /tmp/yahoo.png | |
| // | |
| var system = require('system'); | |
| var url = system.args[1]; | |
| var filename = system.args[2]; | |
| var page = new WebPage(); | |
| page.open(url, function (status) { |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/margin-convention |
| <html> | |
| <head> | |
| <title>D3 Axis Example</title> | |
| <script src="http://d3js.org/d3.v2.js"></script> | |
| <style type="text/css"> | |
| .axis path, | |
| .axis line { | |
| fill: none; |
From Meteor's documentation:
In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.
This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.
Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:
| # | |
| # ASPack 2.29 unpacker via. Dynamic Analysis | |
| # | |
| $:.unshift("C:\\Lib\\metasm") | |
| require 'metasm' | |
| AS229_OEP_PUSH_OFFSET = 0x420 | |
| def _msg(m, error = false) |
| { | |
| "accountWide": true, | |
| "criteria": [ | |
| { | |
| "description": "To Honor One's Elders", | |
| "id": 7553, | |
| "max": 1, | |
| "orderIndex": 0 | |
| }, | |
| { |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
Couldn't find the text of this for a while...
| # GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed! | |
| # (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!) | |
| # This script is designed to circumvent this by downloading the lecture and slideshow | |
| # videos which can then be re-encoded into whatever format you wish. Obviously, you | |
| # won't be able to do this without access to the Vault. This is strictly for the | |
| # convenience of legitimate Vault users! | |
| # Note: this code is rather flimsy and was written as fast as possible for my own personal use. | |
| # The code only works for the most recent GDC Vault videos, since they all use the same player | |
| # format. If the XML format used to run the player is changed (as it has in the past), the code |