Skip to content

Instantly share code, notes, and snippets.

@kokdemo
kokdemo / Boxforkodi.md
Last active September 4, 2019 02:02
Box for kodi

看起来还行

  • 斐讯T1&N1
  • 小米盒子海外版

其他选择

  • 泰捷盒子
  • 海美迪
  • 企鹅极光盒子 1s

靠谱但是贵

@lindowx
lindowx / phabricator-chinese-translation.json
Last active June 7, 2019 03:50
Phabricator中文翻译JSON-汉化
{
"Config": "\u914d\u7f6e",
"Maniphest": "\u4efb\u52a1&Bug",
"Tasks": "\u4efb\u52a1&Bug",
"Phriction": "\u6587\u6863\u5e93",
"Projects": "\u9879\u76ee",
"Joined": "\u53c2\u4e0e\u4e2d",
"Translations": "\u7ffb\u8bd1",
"Countdown": "\u5012\u8ba1\u65f6",
"Files": "\u6587\u4ef6\u7ba1\u7406",
@gobwas
gobwas / combinations.coffee
Last active January 4, 2016 02:29
Returns combinations of given values.
combine = (list, index = 0, combination = [], result = []) ->
if (list[index])
for value in list[index]
combination[index] = value;
combine(list, index + 1, combination, result);
else
result.push(combination[..]);
return result;
@smrchy
smrchy / README.md
Last active March 24, 2022 22:50
Sort a SQL query with id and parentid so that the rows have the correct order of the tree.

_queryTreeSort

Note: Please check this blog post for more details on these functions.

Sort a SQL query with id and parentid so that the rows have the correct order of the tree.

Parameters:

  • q (Array): A query result (see example below)
@axelpale
axelpale / combinations.js
Last active July 7, 2023 10:37
JavaScript functions to calculate combinations of elements in Array.
/**
* Copyright 2012 Akseli Palén.
* Created 2012-07-15.
* Licensed under the MIT license.
*
* <license>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,