Skip to content

Instantly share code, notes, and snippets.

View xiaoluoboding's full-sized avatar
💻
Coding a better future

Robert Shaw xiaoluoboding

💻
Coding a better future
View GitHub Profile
@xiaoluoboding
xiaoluoboding / pythonFile1.py
Last active October 22, 2015 02:40
Python Code Snippets
#把一个逗号分隔的词典,转成嵌套多层的词典。如:
dotted_config = {'a.b.c': 'd'}
nest_config = convert(dotted_config) // {'a': {'b': {'c': 'd'}}}
@xiaoluoboding
xiaoluoboding / 0_reuse_code.js
Created July 22, 2016 08:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xiaoluoboding
xiaoluoboding / rAF.js
Created June 7, 2017 04:37 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@xiaoluoboding
xiaoluoboding / xiaoluoboding-2020.stl
Created March 4, 2021 09:48
My GitHub Skyline 2020
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiaoluoboding
xiaoluoboding / xiaoluoboding-2020.ascii
Last active March 4, 2021 10:14
My GitHub Skyline ASCII 2020
✦ █ ✧ ✦ ✧ █
█ ✦ ▄ █
✦▂ ▂✦ █▆ ✧▁ ✧ ▃ █ █▄▃
▅█▂ ▃ ☽▃▃▁▃▅▆█▂▁▅ ██ ▁ █▆▇▆▅ ▂▆▇▅▆▁▁ █▂▁ █▇███✦▁
███▁█▁█▁████████████████▅███████▅███████▁▁█████████▅█
https://skyline.github.com/xiaoluoboding/2020
TypeScript 15 hrs 42 mins ███████████▊░░░░░░░░░ 56.3%
Vue.js 10 hrs 31 mins ███████▉░░░░░░░░░░░░░ 37.7%
JSON 1 hr 7 mins ▊░░░░░░░░░░░░░░░░░░░░ 4.1%
SCSS 8 mins ░░░░░░░░░░░░░░░░░░░░░ 0.5%
XML 6 mins ░░░░░░░░░░░░░░░░░░░░░ 0.4%