Skip to content

Instantly share code, notes, and snippets.

@chiiia12
chiiia12 / script.js
Created June 28, 2018 09:50
rotation_notification
var slack = {
postUrl: '{url that you create from slack}',
postChannel: "{channel that you want to post notification}",
userName: "dailyMtgBot"
}
//get spreadSheet
var sheet = SpreadsheetApp.openById('{spread sheet id}').getActiveSheet()
var lastrow = sheet.getLastRow();
var lastcol = sheet.getLastColumn();
@chiiia12
chiiia12 / Sample.go
Created January 27, 2018 09:08
golang/nil check sample
package main
import "fmt"
type sample struct {
a int
b string
}
func (s sample) Method() {
var TRIGGER_WORD = "skin:"
function doPost(e){
if (VERIFY_TOKEN != e.parameter.token) {
throw new Error("invalid token.");
}
var inputText = e.parameter.text.replace(TRIGGER_WORD,"");
var data = inputText.split(",");
recordSkinData(data);
package pojproj;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;
import javax.print.StreamPrintService;
package pojproj;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;
public class POJ2010list {
static Scanner sc = new Scanner(System.in);
static int n, c, f;
body{
font-family: 'Raleway', Arial, sans-serif;
}
.box{
width:600px;
height:380px;
opacity:0.5;
background:url('http://tympanus.net/Development/HoverEffectIdeas/img/1.jpg') -40px 0px;
-webkit-transition:background-position 0.5s ease-out,opacity 0.5s linear;
@chiiia12
chiiia12 / follow-button.markdown
Created February 4, 2014 04:28
A Pen by chiiia12.