Skip to content

Instantly share code, notes, and snippets.

View sr229's full-sized avatar
:octocat:
GitHubは私の街です。 (๑・ω・๑)

Ayase Minori sr229

:octocat:
GitHubは私の街です。 (๑・ω・๑)
View GitHub Profile
@sr229
sr229 / example_module.js
Last active August 3, 2016 02:49
A sample module template for project-snowflake. https://github.com/sr229/project-snowflake
exports.commands =[
"ping",
];
exports.ping = {
description : "ping pong example",
process : function (bot,msg){
bot.sendMessage(msg.channel,msg.author + "pong!");
}
}
@sr229
sr229 / bot-es6_compiled.js
Created September 16, 2016 04:58
out file from bot-es6.js by babel.
/* Project Clementine
* this is an experimental ES6 implementation
* some features don't work
* use at your own risk.
* -Capuccino
*/
"use strict";
var _discord = require("discord.js");
@sr229
sr229 / kanan.ts
Created October 24, 2016 12:27
just another try to do a TypeScript Script
/*
* Just another retarded TypeScript made by a lazy twat
* just to learn the lang itself
* and to donate something for /r/LoveLive
*
* Yes, it's Licensed under MIT too.
*/
const strings = input.split("");
class Vector {
@sr229
sr229 / milkshake.cpp
Created November 28, 2016 11:51
why 😂 🔫
#include <iostream>
using namespace std;
int main ()
{
int accnt_no, BC, FCDA, EC, MSC, total, VAT, total_bill, A, a;
char accnt_name, serv_add, repeat, cust_t, conn_t, ms, R, O, S, T ;
cout<<"***********************************************"<<endl;
cout<<"*Welcome to Milkshake Water-Billing Calculator*"<<endl;
@sr229
sr229 / .travis.yml
Created December 18, 2016 03:20
👀
sudo: required
dist: trusty
language: node_js
node_js:
- "6.9"
- "7.1"
install:
- npm -g install -S
<!DOCTYPE html>
<meta charset="utf-8"/>
<head>
<title> awau </title>
<!-- Requires -->
<script src="js/materialize.js" type="text/javascript"></script>
<!-- Mandatory JQuery-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" rel="stylesheet" type="text/css"/>
@sr229
sr229 / che-electron.sh
Created April 3, 2017 04:22
Script to open Eclipse Che electron app, together with the server (as docker image)
#!/bin/sh
# check if docker is working
docker ps &> /dev/null
if [ $? -ne 0 ]; then
echo "[ERROR]\tCannot connect to the Docker daemon. Is the docker daemon running on this host?" 1>&2
return 1
fi
CONTAINER="che"
@sr229
sr229 / .eslintrc.json
Created August 12, 2017 13:28
ESLint Configuration
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": false
@sr229
sr229 / docker-compose.yml
Last active August 18, 2017 03:27
sample stuff uwuwuwuwuwuwuuw
version: '3'
services:
dev-machine:
image: "eclipse/stack-base:ubuntu"
ports:
- "8080:8080"
- "22:22"
- "1337:1337"
db:
image: "rethinkdb:2.2"
@sr229
sr229 / backlog_chain2.txt
Last active November 3, 2017 06:30
Backlog from Story Chain in DDLC community (2017/11/2 archive)
It's halloween and everyone's rocking a scary or a magical outfit. Sayori however, didn't have one, but she planned a prank that would change the school forever. But in order to do that, she'll need the help of the Literature club's president, Monika. "Hey Monika, can you help me with something?" she asked. Monika, unaware of the proposal's nature, agreed and asked, "sure, what kind of help do you need?"
Sayori blushed. "Well uhm... See... Since it's Halloween, I was thinking..." She looked down pointing her fingers. "... And?..." Monika tried her best not to come across too impatiently. "I want to scare my classmates!" She beams. "Real bad! Listen, I got a great idea but I would need some help. I am planning on setting up a paranormal murder case...
Monika was in a deep thought for a second until she thought of something. "Hey!, I got an idea how we can pull this off". She whispered its almost time for that "festival" which is also on time with their Halloween event, and this plan could be pulled off prop