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
use std::any::Any; | |
use std::cell::{Cell, RefCell}; | |
use std::collections::{HashMap, HashSet}; | |
use std::marker::PhantomData; | |
use web_sys::{console, window}; | |
use wasm_bindgen::prelude::{Closure, JsCast}; | |
#[derive(Default)] | |
struct Runtime { | |
signal_values: RefCell<Vec<Box<RefCell<dyn Any>>>>, |
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
import * as React from 'react'; | |
import { BrowserRouter as Router, Link, Redirect, Route, RouteComponentProps, withRouter } from 'react-router-dom'; | |
const UserAuthContext = React.createContext({ | |
authenticated: false, | |
setAuthenticated: (_:boolean) => {} | |
}); | |
const AuthExample = () => ( | |
<Router> |
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
// | |
// Lensy.swift | |
// Lensy | |
// | |
// Created by Safx Developer on 2016/02/12. | |
// Copyright © 2016 Safx Developers. All rights reserved. | |
// | |
// MARK: - Lenses protocols |
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
NOTIFY SSTP/1.1 | |
Charset: UTF-8 | |
Sender: Jenkins-Server | |
Event: OnBuildFailed | |
IfGhost: Jenkins,Hudson | |
Script: \0\v‥‥ビルドに失敗しました。\1なんとかしろ\e | |
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
class Foo { | |
static var x: Int = 0 | |
lazy var a: Int! = { return x++ }() | |
} | |
class Bar { | |
static var y: Int = 0 | |
lazy var b: Int? = { return y++ }() | |
} |
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
#ifdef EMSCRIPTEN | |
#include <emscripten.h> | |
#endif | |
#include <SDL/SDL.h> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <time.h> |
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 dialogueUrl = 'https://api.apigw.smt.docomo.ne.jp/dialogue/v1/dialogue?APIKEY=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'; | |
var typetalkUrl = 'https://typetalk.in/api/v1/topics/xxxx?typetalkToken=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'; | |
var botName = 'foobar'; | |
function doPost(e) { | |
var jsonString = e.postData.getDataAsString(); | |
var post = JSON.parse(jsonString).post; | |
var user = '@' + post.account.name | |
var message = getMessage(post.message); |
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
package sample | |
import "errors" | |
func HexStringToInteger(s string) (int, error) { | |
num := 0 | |
signum := 1 | |
if signum == 0 { | |
return 0, nil |
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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define :node1 do |m| | |
m.vm.box = "precise32" | |
m.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
m.vm.network :private_network, ip: "192.168.1.11" | |
m.vm.network :forwarded_port, guest: 22, host: 22211, id: "ssh" |
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
- hosts: node1 | |
user: vagrant | |
sudo: yes | |
tasks: | |
- name: install python-pycurl | |
apt: pkg=python-pycurl update_cache=yes | |
- name: Add the webupd8 APT repository | |
tags: java | |
apt_repository: repo="deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" state=present |
NewerOlder