Skip to content

Instantly share code, notes, and snippets.

View mchome's full-sized avatar
💭
AI is new INTERNET, BCI is new IPHONE.

Dark Knight mchome

💭
AI is new INTERNET, BCI is new IPHONE.
  • 地靈殿
  • Out of gravity
View GitHub Profile
@mchome
mchome / lzStringDecompressFromBase64.dart
Created March 5, 2019 14:59
lzStringDecompressFromBase64
String lzStringDecompressFromBase64(String str) {
final List<int> valStrBase64 = [
0,
0,
0,
0,
0,
0,
0,
0,
@mchome
mchome / App.vue
Created April 8, 2018 06:38
vue-audio
<template>
<div id="app">
<!-- <p>Vue音乐播放器</p> -->
<vueAudio :filepath="[file, file2]" :defaultvolume="`70`" :preload="`auto`"></vueAudio>
<vueAudio :filepath="[file, file2]" :defaultvolume="`70`" :preload="`auto`" :usewaveform="true">
<!-- <vueAudio :filepath="[file, file2, file3, file4, file5]" :defaultvolume="`70`" :preload="`auto`" :autoplay="true"> -->
<!-- <div slot="progressline" class="audio-progressline"></div> -->
<!-- <p slot="pausebtn">PAUSE</p>
<p slot="playbtn">PLAY</p>
<p slot="previewbtn">PREVIEW</p>
<template>
<div id="app">
<swiper :images="images"></swiper>
</div>
</template>
<script>
import swiper from "./components/vue-swiper";
export default {
@mchome
mchome / main.go
Last active September 3, 2019 08:58
kill dogcom
package main
import (
"net/http"
"os/exec"
)
func indexHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("It works!"))
}
@mchome
mchome / gist:5ae7bade74bdbb7ccee42a1b5457c8ee
Created March 27, 2017 04:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mchome
mchome / github.css
Created September 28, 2016 09:22 — forked from tuzz/github.css
Github Markdown Stylesheet
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px;
color: #333;
}
@mchome
mchome / normalize.py
Last active February 29, 2020 04:03
日文文件名乱码修正
#!/usr/bin/python3
# -*- coding:utf8 -*-
import codecs
import os
def searchFolders(dir):
for root, dirs, files in os.walk(dir):
for file in files:
path = os.path.join(root, file)
@mchome
mchome / seedbox.py
Created September 30, 2015 09:27
magnet转torrent,依赖种子库
import hashlib
import base64
hash = "05153F611B337A378F73F0D32D2C16D362D06BA5"
# print type(hash)
# print hash
sa1 = hash[:2]
sa2 = hash[-2:]