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
const puppeteer = require("puppeteer"); | |
const request = require("request"); | |
const fs = require("fs"); | |
const jsdom=require('jsdom'); | |
const {RTMClient}=require('@slack/client'); | |
const rtm=new RTMClient(process.env.SLACK_TOKEN); | |
rtm.start(); | |
var slack_id; |
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
#!/bin/bash | |
# Installs the broadcom-wl kernel module with DKMS | |
# Tested under Fedora 23, will likely work with other versions/distros | |
# Author: Steven Mirabito <smirabito@csh.rit.edu> | |
# Create a work directory | |
mkdir -p /tmp/broadcom | |
cd /tmp/broadcom | |
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1) |
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
" 基本コンセプト | |
" | |
" * mac/win/linux環境依存しない | |
" * 自分以外の人が触っても混乱しないようにする(rootで複数人が使う場合などに配慮) | |
" * プラグインは極力使わない(プロダクションサーバーに入れたくない) | |
" * プラグイン強化するくらいならその分vimの標準操作を速くできるように指を鍛えるw | |
" * tips混じってるけど気にしない | |
" | |
"-------基本設定-------- | |
"タイトルをバッファ名に変更しない |
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
public class GPIO { | |
public String port; | |
public int pin; | |
//get direction of gpio | |
public String getInOut() | |
{ | |
String command = String.format("cat /sys/class/gpio/%s/direction",this.port); | |
try { |
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
git init # ローカルのgitリポジトリを初期化(新倉庫を作成します) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "xxx@xxx.com" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |