こちらの勉強会で使った資料です -> http://sscala.connpass.com/
Scalaのバージョンは 2.11.1 でやりました。
- val
function! PostSlackTimes(surround) | |
let tmp = @@ | |
silent normal gvy | |
let selected = @@ | |
let @@ = tmp | |
let text = substitute(selected, "\n", '\n', "g") | |
let ret = system("curl -X POST -H 'Content-type: application/json' --data '{\"text\": \"" . a:surround . text . a:surround . "\"}'" | |
\ . " 'https://hooks.slack.com/services/<TOKEN>'") | |
endfunction |
function create_insert() { | |
var headerRowIndex = 1; | |
var firstValuesRowIndex = headerRowIndex + 1; | |
var range = SpreadsheetApp.getActiveRange(); | |
var cells = range.getValues(); | |
var numRows = range.getNumRows(); | |
var numColumns = range.getNumColumns(); | |
var tableName = cells[0][0]; |
package main | |
import ( | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"golang.org/x/oauth2" |
import rx.subjects.BehaviorSubject; | |
public class DataBindingSample { | |
public void start() { | |
ViewModel viewModel = new ViewModel("default"); | |
View view1 = new View(); | |
System.out.println("######################"); | |
System.out.println("view1: " + view1.value); |
こちらの勉強会で使った資料です -> http://sscala.connpass.com/
Scalaのバージョンは 2.11.1 でやりました。
package com.github.kmizu.parser_hands_on.expression; | |
import com.github.kmizu.parser_hands_on.AbstractParser; | |
public abstract class AbstractExpressionParser extends AbstractParser<ExpressionNode> { | |
} |
package com.github.kmizu.parser_hands_on.json; | |
import com.github.kmizu.parser_hands_on.AbstractParser; | |
public abstract class AbstractJSONParser extends AbstractParser<JSONNode> { | |
} |
create-react-app react-mobx-todo
cd react-mobx-todo
yarn run eject
yarn add babel-preset-es2015 babel-preset-stage-1 babel-plugin-transform-decorators-legacy -D
yarn add mobx mobx-react mobx-remotedev -D
{ | |
"presets": ["react-native"], | |
"plugins": ["transform-decorators-legacy"] | |
} |
import React, { Component } from 'react'; | |
class App extends Component { | |
componentDidMount() { | |
this.downloadGoogleScript(this.initSignInButton) | |
} | |
downloadGoogleScript = (callback) => { | |
const element = document.getElementsByTagName('script')[0]; | |
const js = document.createElement('script'); | |
js.id = 'google-platform'; |