Skip to content

Instantly share code, notes, and snippets.

View st44100's full-sized avatar
🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠

st44100 st44100

🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠
  • Shibuya, Japan
View GitHub Profile
@st44100
st44100 / SpotifyNowPlaying.scpt
Created February 14, 2019 08:47
Get current playing track from Spotify
# https://github.com/dronir/SpotifyControl/issues/2#issuecomment-8686456
tell application "Spotify"
set theTrack to current track
set theArtist to artist of theTrack
set theName to name of theTrack
set theCover to artwork url of theTrack
return theArtist & "|" & theName & "|" & theCover
end tell
@st44100
st44100 / wallpaper.sh
Last active July 25, 2018 02:51
Change wallpeper from CLI
#!/bin/sh
# resolve $PATH
export PATH=$HOME/.nvm/versions/node/v8.9.2/bin/:$PATH
export PATH=$HOME/bin/:$PATH
export PATH=/usr/local/bin/:$PATH
# Fetch current song picture from spotify.
spotify share | sed -e '2d' -e 's/^SpotifyURI://' | xargs -ISONG_URL curl -X GET https://open.spotify.com/oembed\?url\=SONG_URL | jq '.thumbnail_url' | xargs -IIMAGE_URL wget IMAGE_URL -O ~/Pictures/spotify-wallpaper.jpg
@st44100
st44100 / .block
Created November 26, 2017 13:23
Film Flowers Starter Code
license: gpl-3.0
@st44100
st44100 / cloudSettings
Created October 13, 2017 10:46
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-13T10:45:58.424Z","extensionVersion":"v2.8.3"}
@st44100
st44100 / xss.js
Last active September 28, 2015 11:09
xss.js
alert('xss');
@st44100
st44100 / pc.css
Created September 14, 2015 02:32
Ameba Ownd Bill theme extention
.page__keyvisual {
display: none;
}
.blog-title__text {
font-family: "Helvetica neue",Arial,Roboto,"Droid Sans","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
@st44100
st44100 / index.html
Last active August 29, 2015 14:16
Array Uniq in coffee script JS Bin// source http://jsbin.com/xiwimo
<!DOCTYPE html>
<html>
<head>
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var k, list, res, text, v, _i, _len;
@st44100
st44100 / shadeAndTintColor.cofffee
Created January 9, 2015 17:56
Angular.js Shade and Tint color converter.
##*
# UAGE:
# app = angular.module('yourApp', [])
# app.factory(require('./shadeAndTintColor'))
# app.controller('yourCtrl', ['ShadeAndTintColor', (Color)
# ->
# Color.shade('#f9ea62', 0.1) # '#E0D258'
# Color.tint('#f9ea62', 0.39) # '#FBF29F'
# ])
#
@st44100
st44100 / shadeAndTint.coffee
Last active August 29, 2015 14:13
CoffeeScript Shade and Tint color without Alpha channel
toRgb = (hex) ->
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)
if result
[
parseInt(result[1], 16)
parseInt(result[2], 16)
parseInt(result[3], 16)
]
else