Skip to content

Instantly share code, notes, and snippets.

@seratch
seratch / index.js
Last active November 4, 2021 04:02
Workflow Builder: Steps from apps - https://api.slack.com/workflows/steps
const config = require("dotenv").config().parsed;
for (const k in config) {
process.env[k] = config[k];
}
// npm install @slack/bolt@feat-workflow-steps
const { App } = require("@slack/bolt");
const app = new App({
signingSecret: process.env.SLACK_SIGNING_SECRET,
token: process.env.SLACK_BOT_TOKEN,
@yutopp
yutopp / 温泉.md
Last active February 10, 2020 03:28

適当に感想を書くので、ググって行ってどうぞ。 多分全部日帰りで使えるところです。

北海道

名前 感想 行った回数 行った時期 オススメ感
第一滝本館 登別の地獄谷が窓から全部見られる。温泉の種類も多く、露天風呂からは季節によっては紅葉とかも見られそうだった。少し割高なものの、1日中居られそうな気がするくらい充実していると思う。 1 晩夏/昼 95点

会津(若松のほう)

|名前|感想|行った回数|行った時期|オススメ感|

#!/usr/bin/env python
# coding: utf-8
from PIL import Image, ImageOps
import numpy
import serial
class SM1_21:
def __init__(self, port='/dev/ttys0', baud=115200):
@mitsuruog
mitsuruog / Angular2 HttpInterceptor Needed.md
Last active August 16, 2016 02:55
Angular2でHttpInterceptorが欲しいお

Angular2 HttpInterceptor Needed

Who am I

  • 小川充
    • @mitsuruog
    • Front-end Developer in Givery inc.
    • Angular User Group Staff.

HttpInterceptorとは

#include <stdio.h>
#include <math.h>
int main(int argc, char **argv) {
int n = 1111111;
printf("%d", n);
int b = 10;
int buffer = n % 10; n /= 10;
@izumin5210
izumin5210 / newlines.coffee
Created April 20, 2014 03:45
【AngularJS】改行を有効にするためのフィルタ
app = angular.module 'MyApplication'
app.filter 'noHTML', ->
(text) -> text.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/&/, '&amp;') if text?
app.filter 'newlines', ($sce) ->
(text) -> $sce.trustAsHtml(if text? then text.replace(/\n/g, '<br />') else '')
app.controller 'testCtrl', ($scope) ->
$scope.iroha = 'いろはにほへと ちりぬるを\nわかよたれそ  つねならむ\nうゐのおくやま けふこえて\nあさきゆめみし ゑひもせす'
@subudeepak
subudeepak / angular-loadscript-with-documentwrite.js
Last active May 5, 2020 03:16 — forked from endorama/angular-loadscript.js
Loading scripts on ngInclude (ng route) - Script loading directive
/**
* This module is a variant which supports document.write. If you need document.write use this instead
* Author: Deepak Subramanian @subudeepak(https://github.com/subudeepak)
* Distributed under MIT License
*/
/*global angular */
(function (ng) {
'use strict';
app.directive('script', function() {
return {
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@rummelonp
rummelonp / zsh_completion.md
Last active February 22, 2023 15:06
zsh の補完関数の自作導入編

zsh の補完関数の自作導入編

あまり深く理解してないので識者のツッコミ大歓迎

補完を有効にする

取り敢えず最低限だけ

# 補完を有効にする
#!/bin/sh
#
# Usage: git semver-tags [-p|--pre]
#
# Lists semver tags in the repository in order from newest to oldest.
#
# Useful for e.g. programmatically finding the latest release tag:
# `git semver-tags | head -n 1`.
#
# Tag names must be valid according to the SemVer 1.0.0 specification