This file has been truncated, but you can view the full file.
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
/** | |
Open Source Software Licenses | |
PUBLUS | |
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved. | |
This software includes all or part of the following open source software which is available under each license terms and conditions as follows: | |
* Backbone.js 0.9.2 | |
(c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. |
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
/* | |
* Arduino interface for the use of WS2812 strip LEDs | |
* Uses Adalight protocol and is compatible with Boblight, Prismatik etc... | |
* "Magic Word" for synchronisation is 'Ada' followed by LED High, Low and Checksum | |
* @author: Wifsimster <wifsimster@gmail.com> | |
* @library: FastLED v3.001 | |
* @date: 11/22/2015 | |
*/ | |
#include <FastLED.h> | |
#define NUM_LEDS 50 // 设置灯珠总数(貌似不能超过 400 个 |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Author: Sg4Dylan -- <sg4dylan#gmail.com> | |
# Licence: GPLv3 | |
import requests | |
import re | |
import json | |
import time |
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
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan -- <sg4dylan#gmail.com> | |
# Update: 10/13/2017 | |
''' | |
透过 Chrome Debug Protocol 读取网易云音乐当前播放状态 | |
启动播放器时附带启动参数 | |
--remote-debugging-port=8080 |
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
/** | |
Open Source Software Licenses | |
PUBLUS | |
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved. | |
This software includes all or part of the following open source software which is available under each license terms and conditions as follows: | |
* LAB.js (LABjs :: Loading And Blocking JavaScript) | |
v2.0.3 (c) Kyle Simpson |
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
// 显示下载链接的侧边栏加载完成后,在 Console 复制这段 JS 并执行 | |
// 执行完成后,鼠标选中一组链接,ctrl+c 复制到 aria2 即可批量下载视频 | |
// 格式化版 | |
var total_area = document.getElementById('geturl_content'); | |
var split_area = total_area.getElementsByTagName('div'); | |
var itemDocs = []; | |
for (let i=0;i<split_area.length;i++) { | |
if(split_area[i].style[0]=="width") { | |
itemDocs.push(split_area[i]); |
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 os | |
import json | |
import re | |
from datetime import datetime, timedelta | |
rss_json = '' | |
for i in os.listdir('.'): | |
if i.endswith('.json'): | |
rss_json = i |
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
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Purpose: A simple script to download video from Bilibili | |
# Created: 08/07/2016 | |
import sys | |
from subprocess import call | |
def check_and_go(args): |
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
#include <Wire.h> | |
#include <BH1750.h> | |
BH1750 lightMeter; | |
void setup(){ | |
Serial.begin(9600); | |
// Initialize the I2C bus (BH1750 library doesn't do this automatically) | |
// On esp8266 devices you can select SCL and SDA pins using Wire.begin(D4, D3); | |
Wire.begin(); |
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
name: 'CI Build' | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
branches: | |
- master | |
- 'release/**' | |
tags: |
NewerOlder