Skip to content

Instantly share code, notes, and snippets.

@horimislime
horimislime / main.js
Created May 16, 2023 12:25
List all warning messages on GitHub Actions workflows
const { Octokit } = require("@octokit/rest");
const octokit = new Octokit({
auth: process.env.GH_TOKEN,
});
(async () => {
const orgName = process.env.ORG_NAME;
// List all repositories excluding archived status

Keybase proof

I hereby claim:

  • I am horimislime on github.
  • I am horimislime (https://keybase.io/horimislime) on keybase.
  • I have a public key ASD6NrZPqV0YvijCejdvSAMhvJ74TePdqLfBW0-ULXnlKwo

To claim this, I am signing this object:

@horimislime
horimislime / init.el
Created February 20, 2019 14:25
Early 2019 version of init.el
;;;; package.el
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file)
(setq package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(require 'package)
@horimislime
horimislime / bear2jekyll.py
Created November 17, 2018 15:10
Copy an entry written on @bearnotesapp into Jekyll site repository
import os
import sys
import zipfile
class BearNote(object):
def __init__(self, body, images):
self.body = body
self.images = images
# coding: utf-8
require 'open-uri'
module Fastlane
module Actions
class DownloadCrowdinResourceAction < Action
HOST_NAME = 'https://api.crowdin.com'
def self.run(params)
# coding: utf-8
require 'faraday'
require 'faraday_middleware'
require 'json'
require 'open-uri'
require 'plist'
module Fastlane
module Actions
class DownloadHockeyIpaAction < Action
.item_body {
display: none;
}
.item_info {
display: none;
}
.compact .item .item_title {
font-size: 100% !important;
@horimislime
horimislime / main.gs
Last active September 11, 2015 02:27
GAS script that find specific email from Gmail, extract body from it, then send it to a slack channel
var token = "...";
var channelId = "...";
function run() {
var threads = GmailApp.search('subject:"send-to-slack" label:inbox', 0, 500);
if (threads.length == 0) {
return;
} else if (threads.length > 1) {

iOS - UIWebView note

Problem with webViewDidFinishLoad called multiple times

- (void)webViewDidFinishLoad:(UIWebView *)aWebView {

  NSLog(@"This will be called multiple times.");

  if(!aWebView.loading) {
 NSLog(@"This will be called once");
@horimislime
horimislime / atom.md
Created April 9, 2014 00:59
test-from-gist-it

今更ながらメインのエディタをAtomに移行中で、入れてみて気に入ったpackageとかまとめてみる。

ctrl-alt-fでコードフォーマットをかけてくれる。

jsの構文チェック。