- Repository
- Get
- All
/user/repos
- public && private Repositories of the authenticated user
- type= owner, public, private, member
- sort = created, updated, pushed, full_name
/users/:username/repos
- All
- Get
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 path from 'path' | |
import fs from 'fs' | |
let targetPath = path.resolve(__dirname, '../') | |
let files: string[] = [] | |
const ignore = { | |
'src/copyFolder.ts': true, | |
'src/starter.ts': true, | |
'.git': true, |
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
const twirlTimer = function () { | |
let P = ['\\', '|', '/', '-'] | |
let x = 0 | |
return setInterval(function () { | |
process.stdout.write('\r' + P[x++]) | |
x &= 3 | |
}, 250) | |
} | |
const animateLoading = function (fullLength: number, current: number = 0) { |
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 colors from 'colors' | |
const log = (...args: Object[]) => { | |
args.forEach(e => { | |
if (typeof e === 'object') { | |
console.dir(e, { depth: null }) | |
} else if (typeof e === 'boolean') { | |
console.log(colors.bgMagenta.white(` ${e} `)) | |
} else { | |
console.log(colors.bgCyan.black(` ${e} `)) | |
} |
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 fs from 'fs' | |
import path from 'path' | |
function copyFileSync (source, target) { | |
let targetFile = target | |
// if target is a directory a new file with the same name will be created | |
if (fs.existsSync(target)) { | |
if (fs.lstatSync(target).isDirectory()) { |
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 fs from 'fs' | |
import Stream from 'stream' | |
import { StringDecoder } from 'string_decoder' | |
import through from 'through2' | |
const string = ` | |
Bright Black 90 100 85,85,85 128,128,128 128,128,128 129,131,131 85,85,85 127,127,127 127,127,127 128,128,128 | |
Bright Red 91 101 255,85,85 255,0,0 255,0,0 252,57,31 255,85,85 255,0,0 255,0,0 255,0,0 | |
` |
- 주파수 관련
- 알뜰폰
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
function uuid() | |
{ | |
var seed = Date.now(); | |
if (window.performance && typeof window.performance.now === "function") { | |
seed += performance.now(); | |
} | |
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |
var r = (seed + Math.random() * 16) % 16 | 0; | |
seed = Math.floor(seed/16); |
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
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
OlderNewer