- Avaa chat käyttäjän Botfather kanssa
This file contains hidden or 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
const TelegramBot = require('node-telegram-bot-api'); | |
const token = 'token-goes-here'; | |
const bot = new TelegramBot(token, { polling: true }); | |
bot.on('message', (message) => { | |
console.log(message); | |
bot.sendMessage(message.chat.id, 'Received your message'); | |
}); |
This file contains hidden or 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
const TelegramBot = require('node-telegram-bot-api'); | |
const token = 'token-goes-here'; | |
const bot = new TelegramBot(token, { polling: true }); | |
bot.onText(/\/hai/, (message) => { | |
bot.sendMessage(message.chat.id, 'hello looby'); | |
}); | |
console.log('I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do.'); |
This file contains hidden or 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
bind f "use weapon_flashbang" | |
bind c "use weapon_smokegrenade" | |
bind g "use weapon_hegrenade" | |
bind x "use weapon_incgrenade;use weapon_molotov" | |
bind "kp_ins" "buy vesthelm;" | |
bind "kp_del" "buy ak47; buy m4a1;" | |
bind "kp_enter" "buy flashbang;" | |
bind "kp_plus" "buy smokegrenade;" | |
bind "kp_minus" "buy sg556; buy aug;" |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
This file contains hidden or 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
SetID,Number,Variant,Theme,Subtheme,Year,Name,Minifigs,Pieces,UKPrice,USPrice,CAPrice,EUPrice,ImageURL | |
7522,"0012","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0012-1.jpg" | |
7523,"0013","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0013-1.jpg" | |
7524,"0014","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0014-1.jpg" | |
7563,"0015","1","Space","","1979","Space Mini-Figures",3,18,,,,,"http://images.brickset.com/sets/images/0015-1.jpg" | |
9581,"54","1","Space","UFO","1997","UFO Action Pack",,96,,,,,"http://images.brickset.com/sets/images/54-1.jpg" | |
1273,"305","1","Space","Classic","1979","Two Crater Plates",,2,,,,,"http://images.brickset.com/sets/images/305-1.jpg" | |
1284,"306","1","Space","Classic","1979","Two Lunar Landing Plates",,2,,,,,"http://images.brickset.com/sets/images/306-1.jpg" | |
2104,"442","1","Space","Classic","1979","Space Shuttle",1,39,,,,,"http://images.brickset.com/sets/images/442- |
This file contains hidden or 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
FROM wordpress | |
MAINTAINER Antti Mattila <[email protected]> | |
COPY ./wp-content /var/www/html/wp-content |
This file contains hidden or 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
[ | |
{ "key": "cmd+shift+d", "command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus" }, | |
{ "key": "cmd+alt+w", "command": "editor.action.toggleWordWrap", | |
"when": "editorTextFocus" }, | |
{ "key": "cmd+shift-c", "command": "editor.action.commentLine", | |
"when": "editorTextFocus" }, | |
{ "key": "shift+ctrl+down", "command": "cursorColumnSelectDown", | |
"when": "editorTextFocus" }, | |
{ "key": "shift+ctrl+up", "command": "cursorColumnSelectUp", |
This file contains hidden or 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
$(function() { | |
$("#axios").on("click", function() { | |
axios.post("http://wordpress.dev/wp-json/wp/v2/movie", { | |
title: $("#title").val(), | |
status: "publish" | |
}, { | |
headers: { | |
"Authorization": "Basic YWRtaW46YWRtaW4=" | |
} | |
}).then(function(res) { |
This file contains hidden or 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 React from "react"; | |
import ReactTestUtils from "react-addons-test-utils"; | |
const { renderIntoDocument, scryRenderedDOMComponentsWithTag } = ReactTestUtils; | |
import { expect } from "chai"; | |
const Test = React.createClass({ | |
render() { | |
return ( | |
<div> | |
<span>Foo</span> |