This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /P URL="m3u8 url: " | |
ffmpeg -i %URL% -movflags faststart -c copy -bsf:a aac_adtstoasc hls_%DATE:~-10,4%%DATE:~-5,2%%DATE:~-2%%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _createClass = function () { | |
function defineProperties(target, props) { | |
for (var i = 0; i < props.length; i++) { | |
var descriptor = props[i]; | |
descriptor.enumerable = descriptor.enumerable || false; | |
descriptor.configurable = true; | |
if ("value" in descriptor) descriptor.writable = true; | |
Object.defineProperty(target, descriptor.key, descriptor); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Gemfile | |
source "https://rubygems.org" | |
# gem "rails" | |
gem "yahoo-japanese-analysis" | |
gem "romaji" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'source-map-support/register'; | |
import PushBullet from 'pushbullet'; | |
import Twit from 'twit'; | |
import winston from 'winston'; | |
winston.add(winston.transports.File, { filename: 'winston.log', json: false }); | |
const pusher = new PushBullet('*****'); | |
const T = new Twit({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp = require 'gulp' | |
watchify = require 'gulp-watchify' | |
sourcemaps = require 'gulp-sourcemaps' | |
buffer = require 'vinyl-buffer' | |
plumber = require 'gulp-plumber' | |
rename = require 'gulp-rename' | |
target = | |
src: 'index.coffee' | |
name: 'index.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'highline' | |
require 'rmagick' | |
require 'parallel' | |
require 'pp' | |
class ImageAnalize | |
attr_reader :img | |
COLOR_MAP = [ | |
nil, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'natto' | |
require 'twitter' | |
require 'yaml' | |
key_data = YAML.load_file(File.expand_path('./key_token.yml')) | |
$api = Twitter::REST::Client.new do |config| | |
config.consumer_key = key_data['consumer_key'] | |
config.consumer_secret = key_data['consumer_secret'] | |
config.access_token = key_data['access_token'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = pnlybubbles | |
email = pnlybubbles@gmail.com | |
[pull] | |
ff = true | |
[alias] | |
i = init | |
cl = clone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Runner | |
constructor: -> | |
@cbs = [] | |
set: (callback) -> | |
@cbs.push callback | |
run: -> | |
for cb in @cbs | |
cb() |