Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or 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
/** | |
* Check for equality between two objects based on JSON stringification | |
* @param {Object} objectA | |
* @param {Object} objectB | |
*/ | |
export const jsonStringifyEquality = (objectA, objectB) => { | |
return JSON.stringify(objectA) === JSON.stringify(objectB); | |
} |
These steps where found here: https://apple.stackexchange.com/questions/222917/how-do-i-use-ffmpeg-to-convert-audible-files/243670#243670
This file contains hidden or 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
function formatJson (json, options) { | |
let reg = null; | |
let formatted = ''; | |
let pad = 0; | |
let PADDING = ' '; | |
options = options || {}; | |
options.newlineAfterColonIfBeforeBraceOrBracket = options.newlineAfterColonIfBeforeBraceOrBracket === true; | |
options.spaceAfterColon = options.spaceAfterColon === false; | |
if (typeof json !== 'string') { | |
json = JSON.stringify(json); |
This file contains hidden or 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
const Net = (function(exports) { | |
/** | |
* 在页面里动态嵌入js最轻量的方法 | |
* @param {string} url get请求的参数,防止缓存的随机数,jsoncallback都应该手动加在这里 | |
* @param {Object|function} op 配置参数或回调函数,op.charset表示js文件的编码 | |
*/ | |
exports.getScript = function(url, op){ | |
var s = document.createElement("script"); | |
s.type = "text/javascript"; |
This file contains hidden or 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
#!/bin/sh | |
fastboot flash partition gpt.bin | |
fastboot flash bootloader bootloader.img | |
fastboot flash boot boot.img | |
fastboot flash logo logo.bin | |
fastboot flash recovery recovery.img | |
fastboot flash dsp adspso.bin | |
fastboot flash oem oem.img | |
fastboot flash system system.img_sparsechunk.0 | |
fastboot flash system system.img_sparsechunk.1 |
This file contains hidden or 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
// ==UserScript== | |
// @name DuckDuckGo DeepDark | |
// @namespace http://userstyles.org | |
// @description <p> | |
// @author RaitaroH | |
// @homepage https://userstyles.org/styles/135954 | |
// @run-at document-start | |
// @version 0.20180103060610 | |
// ==/UserScript== | |
(function() {var css = ""; |
This file contains hidden or 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
//sticky | |
$(function() { | |
// Hide Header on on scroll down | |
var didScroll = false; | |
var lastScrollTop = 0; | |
var delta = 5; | |
var navbarHeight = $('.c-header').outerHeight() + 30; | |
if ($(window).scrollTop() == 0) { | |
$('.c-header').addClass('js-at-top'); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
import 'dart:async' show Future; | |
import 'package:flutter/services.dart' show rootBundle; | |
class Student { | |
String studentId; | |
String studentName; | |
int studentScores; | |
Student({this.studentId, this.studentName, this.studentScores}); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
import 'dart:async' show Future; | |
import 'package:flutter/services.dart' show rootBundle; | |
class Student { | |
String studentId; | |
String studentName; | |
int studentScores; | |
Student({this.studentId, this.studentName, this.studentScores}); |