Skip to content
#!/bin/sh
check_root()
{
if [ $UID -ne 0 ]; then
echo "Must be root to run setup-fermi-cloud"
exit 1
fi
}
#include "node.h"
#include "handle_wrap.h"
// I needed an extra class from the c++ standard library here:
#include <string>
namespace node {
using v8::Object;
using v8::Handle;
using v8::HandleScope;
module MotionModel
module Model
def save(*)
puts "called MM#save"
end
end
end
module MotionModel
module Paranoid
<?php
$fp = fopen('/path/to/your/file', 'rb');
// open a memory stream 5MB large, which switches to a file-backed stream after 5MB
$output = fopen('php://temp/maxmemory:5242880', 'w+');
// length is how many bytes to copy, start is where in the file to start copying them from
$count = $length;
while($count > 0) $count -= stream_copy_to_stream($fp, $output, $length, $start);
rewind($output);
// include node methods
#include "node.h"
#include "handle_wrap.h"
// use the node namespace
namespace node {
// a bunch of v8 classes that I'll need
using v8::Object;
using v8::Handle;
var sb = new StringBuilder();
foreach (var src in container.ComponentRegistry.Sources.Select(s => s.ToString()).OrderBy(s => s))
sb.AppendLine(src);
sb.AppendLine();
foreach (var reg in container.ComponentRegistry.Registrations.OrderBy(r => r.Activator.LimitType.FullName))
{
sb.AppendLine(reg.Activator.LimitType.FullName);
sb.Append(" ").AppendLine(reg.Lifetime.GetType().Name);
\Swift::init(function () {
\Swift_DependencyContainer::getInstance()
->register('mime.qpheaderencoder')
->asAliasOf('mime.base64headerencoder');
\Swift_Preferences::getInstance()->setCharset('iso-2022-jp');
});
$message = \Swift_Message::newInstance()
->setCharset('iso-2022-jp')
->setSubject('長めの日本語サブジェクトを送信した場合の挙動の確認をおこなう')
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/d3.hexbin.v0.js"></script>
Something went wrong with that request. Please try again.