Skip to content

Instantly share code, notes, and snippets.

View qrg's full-sized avatar
🏠
Working from home

Qurage qrg

🏠
Working from home
View GitHub Profile
#!/usr/bin/env node
'use strict';
const npmCount = require('npm-count');
const today = new Date().toISOString().replace(/T.+$/g, '');
const RANK = 50;
const padLeft = (str, width, z) => {
@qrg
qrg / check-gulp-blacklist.js
Created March 16, 2016 06:16
`$ node ~/scripts/check-gulp-blacklist.js [SEARCHWORD]`
#!/usr/bin/env node
'use strict';
const https = require('https');
const argv = process.argv[2];
const uri = 'https://raw.githubusercontent.com/gulpjs/plugins/master/src/blackList.json';
const isEmpty = (obj) => {
return Object.keys(obj).length === 0 && JSON.stringify(obj) === JSON.stringify({})
@qrg
qrg / .css
Created March 5, 2016 15:46
chrome quick tabs custm style
body {
width: 600px;
font-family: inherit;
}
div.title {
color: #444;
}
div.url {
#!/usr/bin/env node
'use strict';
import 'babel-polyfill';
import fs from 'fs';
const PREFIX = './sample/';
const read = (file) => {
'use strict';
// http://jxck.hatenablog.com/entry/2014-01-12/generator-screencaset
const co = (gen) => {
const g = gen();
const done = (err, data) => {
if (err) {
return g.throw(err);
var css = '@keyframes pound {50% { transform: scale(1.4); }} .thechosenone {background-image: url("http://i.gyazo.com/8e5ca2b4889a1094fa1e71aa977eb4fe.png"); background-size:cover; animation: pound .25s ease}',
iframe = document.querySelector('iframe'),
head = iframe.contentDocument.head,
style = iframe.contentDocument.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
@qrg
qrg / github-comment-highlight-by-url-hash.css
Last active August 29, 2015 14:23
highlight github issue comment element by url hash
.comment:target {
background-color: rgb(255, 255, 175) !important;
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: JIRA Syntax
scopeName: text.jira-syntax-tmlanguage
fileTypes: []
uuid: d16334ef-4dd6-4b0d-bf17-2c06f48c1b9d
patterns:
- match: ^h[1-6][ ].*$
@qrg
qrg / file0.txt
Last active August 29, 2015 14:06
Mac OSX Mavericks で pyenv ref: http://qiita.com/Qurage/items/a93f3cebe54daf5b3e2f
~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin