-
./curl > result.json
-
npm install
-
node index.js > out.graphql
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
// ==UserScript== | |
// @name Copy Shopify | |
// @version 0.1 | |
// @description Add copy button to shopify admin-api graphql schemas | |
// @author tkain | |
// @match https://shopify.dev/docs/admin-api/graphql/reference/* | |
// @grant GM_setClipboard | |
// ==/UserScript== | |
const parseAndCopy = (table) => { |
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 CardDB = require('../sql/card/CardDB.js') | |
CardDB.setSequelize(global.sequelize) | |
const CardModel = CardDB.model() | |
const ERROR = require('../const/error.js') | |
const ACTION = { | |
SELECT_VALID: 'SELECT_VALID', | |
UPDATE: 'UPDATE' | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.js"></script> | |
<script src="https://code.jquery.com/jquery-1.11.3.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
<link rel="stylesheet" href="./a.css"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> |
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
- provide :title, "影音資料庫" | |
- provide :subtitle, "#{ @chapter.chapters_title } |" | |
- provide :cover, image_path('cover.jpg') | |
#library data-current-chapter=@chapter.id | |
.horizontal.wrap | |
#units | |
.desktop.laptop.tablet | |
nav.ui.four.item.fluid.no.radius.margin.menu.inverted.blue | |
== render 'chapter_nav' |