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 fetch = require('node-fetch'); | |
function post_message(channel, text) { | |
const obj = { | |
token: 'xoxb-aaaaaaaaaaa', | |
channel, | |
as_user: true, | |
text | |
}; | |
fetch('https://slack.com/api/chat.postMessage', { |
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
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: LatticedLiquid2.java | |
import java.applet.Applet; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.awt.image.MemoryImageSource; | |
import java.util.Arrays; |
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
set PATH $HOME/.nodebrew/current/bin $PATH >/dev/null ^&1 | |
set PATH $HOME/.rbenv/shims $PATH >/dev/null ^&1 | |
rbenv init - | source | |
set normal (set_color normal) | |
set magenta (set_color magenta) | |
set yellow (set_color yellow) | |
set green (set_color green) | |
set red (set_color red) | |
set gray (set_color -o black) |
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
(function() { | |
// ゲーム本体のインスタンス | |
var runner = Runner.instance_; | |
// ゲームの更新処理をフック | |
var _update = runner.update; | |
runner.update = function() { | |
_update.call(this); | |
watch(); | |
}; |
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 OAuth | |
attr_reader :screen_name, :consumer_key, :consumer_secret, :token, :token_secret | |
def initialize(screen_name, consumer_key, consumer_secret, token, token_secret) | |
@screen_name = screen_name | |
@consumer_key = consumer_key | |
@consumer_secret = consumer_secret | |
@token = token |
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
<?php | |
$result = shell_exec('df -k'); | |
$disks = explode("\n", $result); | |
array_shift($disks); | |
function readable_byte($byte) { | |
$units = array('KB', 'MB', 'GB', 'TB'); | |
for ($i = 0; $i < 3; $i++) { | |
if ($byte < 1000) break; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebGL Playground</title> | |
</head> | |
<body> | |
<canvas id="target" width="500" height="500"></canvas> | |
<script type="text/vertex" id="vs"> | |
precision highp float; |
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
@mixin border-radius($round...) { | |
-webkit-border-radius: $round; | |
-moz-border-radius: $round; | |
-ms-border-radius: $round; | |
-o-border-radius: $round; | |
border-radius: $round; | |
} | |
@mixin round() { | |
@include border-radius(999em); |
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
<?php | |
/* ----- configure ----- */ | |
//Pixiv ID | |
define('PIXIV_ID', 'your_pixiv_id'); | |
//Pixiv password | |
define('PIXIV_PASSWORD', 'your_pixiv_password'); | |
/* ----- configure ----- */ |