Skip to content

Instantly share code, notes, and snippets.

View aocattleya's full-sized avatar
Please help yourself 🍴

aocattleya aocattleya

Please help yourself 🍴
View GitHub Profile
@aocattleya
aocattleya / InstagramFFCheck.md
Created December 2, 2024 11:15
Instagramで「自分はフォローしているがフォローされていないユーザー」を取得
@aocattleya
aocattleya / ress.css
Last active February 2, 2021 15:33
ress.css
/*!
* ress.css • v3.0.1
* MIT License
* github.com/filipelinhares/ress
*/
/* # =================================================================
# Global selectors
# ================================================================= */
@aocattleya
aocattleya / Slack.php
Last active January 31, 2021 15:13
PHPで簡単にSlack通知
<?php
namespace App\Libs;
class Slack
{
/**
* Slack通知
*
@aocattleya
aocattleya / follow.js
Created January 23, 2021 11:04
GitHubフォロワー取得スクリプト
javascript: var d = document; var b = document.body; var m = d.createElement('div'); m.setAttribute('style', 'background: rgba(0,0,0,0.5); position: fixed; width: 100%; height: 100%; top: 0; z-index: 555;'); b.appendChild(m); var p = d.createElement('div'); p.setAttribute('style', 'background: #fff; position: fixed; z-index: 666; margin: 0; padding: 20px; width: 50%; min-height: 50%; max-height: 60%; top: 5%; left: 25%; overflow-y: scroll;'); b.appendChild(p); var l = d.createElement('div'); l.setAttribute('style', 'height: -webkit-fill-available; height: -moz-available;'); l.innerHTML = [...d.querySelectorAll('div.d-table.table-fixed.col-12.width-full.py-4.border-bottom.border-gray-light > div.d-table-cell > a')].map(n => n.innerText).join('<br>'); p.appendChild(l); var c = d.createElement('button'); c.setAttribute('type', 'button'); c.setAttribute('style', 'position: absolute; top: 5%; right: 5%; background: #f0f8ff;'); c.textContent = 'リストをコピーして閉じる'; c.onclick = () => { d.getSelection().selectAllChildren(l
@aocattleya
aocattleya / VtuberTableSeeder.php
Created January 17, 2021 14:25
Vtuber(ホロライブ + にじさんじ)のSeederファイル(一部後半カラム適当)
<?php
use Illuminate\Database\Seeder;
class VtuberTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
@aocattleya
aocattleya / Swiper.html
Last active January 17, 2021 10:15
短く複数Swiper new
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/css/swiper.min.css" />
<link rel="stylesheet" href="https://www.willstyle.co.jp/DEMO/common/css/bootstrap.min.css" />
<style>
.mb60 {
margin-bottom: 60px;
}
@aocattleya
aocattleya / Laravel.sh
Created September 23, 2020 14:51
Laravel7で作成するコマンド
composer create-project laravel/laravel app 7 --prefer-dist
@aocattleya
aocattleya / カンマ区切り.md
Last active September 12, 2020 13:54
Vueカンマ区切りフィルター

『|』でフィルタを繋げる事で呼び出せる。

{{ 対象のデータ | フィルタの名前 }}

{{ price | localeNum }}円
new Vue({
@aocattleya
aocattleya / show_top_genres_from_csv.php
Created September 9, 2020 08:28
CSVファイルから#区切りの文字列を分割して最も多い単語を抽出する。
<?php
$f = fopen("./query_result.csv", "r");
$csv_result = array();
while($line = fgetcsv($f)){
// 読み込んだ結果を表示。
$csv_result = array_merge($csv_result, $line);
}
$genre = array();
$all_value = array();
foreach($csv_result as $value){
Other 7 hrs 24 mins █████████████████████ 100.0%