Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
meowwww

Fumiya A yuis-ice

💭
meowwww
View GitHub Profile
View flex-blog-entries.markdown
View blog-cards.markdown
@yuis-ice
yuis-ice / index.html
Created Mar 27, 2022
Prism.js example
View index.html
<div class="title"> Prism.js example </div>
<p class="text"> Javascript: </p>
<pre class="language-js">
<code class="language-js">
function example(a, b) {
console.log("example!);
}
</code>
</pre>
<p class="text"> CSS: </p>
@yuis-ice
yuis-ice / moment.js
Created Apr 30, 2021
moment.js v2.29.1 browserify-ed JavaScript Script
View moment.js
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.moment = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
;(function (global, factor
@yuis-ice
yuis-ice / readme.md
Last active Dec 28, 2020
Rewind/forward videos for 1 second on Youtube
View readme.md

Install Autohotkey from here and save following script as tmp.ahk and execute the file by clicking.

You can rewind Youtube videos for 1 second by z and forward Youtube videos for 1 second by x.

WinActive("ahk_exe chrome.exe"): The feature will be only enabled on chrome.exe

WinActive(" - YouTube"): The feature will be only enabled if the window title of the current chrome tab matches to regex - YouTube

@yuis-ice
yuis-ice / wp get title.md
Last active Jul 27, 2017
Displayed link with link-destination-title for add_shortcode.
View wp get title.md

wp get title

Displayed link with link-destination-title for add_shortcode.

<?php


function get_title($attr){