Skip to content

Instantly share code, notes, and snippets.

View lihsai0's full-sized avatar
🗑️
Warning: me == noob is always true

lihsai0

🗑️
Warning: me == noob is always true
View GitHub Profile
@lihsai0
lihsai0 / scroll.html
Created April 3, 2018 03:19
[Study] fragement in study
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test Fullpage</title>
<style>
html, body {
padding: 0;
@lihsai0
lihsai0 / FormatJson.js
Created December 29, 2017 03:11
[Utils] Useful codes #utils
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);
@lihsai0
lihsai0 / Matrix.html
Last active November 28, 2017 01:22
[Little H5] some interesting h5 codes #H5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
-->
<title>Matrix</title>
# 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 ->