Initiative
[ecosystem] Mixin repo · Issue #240 · chancejs/chancejs
Consider splitting across multiple packages / modules? · Issue #52 · chancejs/chancejs
- The repo SHALL be named
chance-${mixin_name}
| // code fragment for getting info of a dynamically bound port | |
| struct sockaddr_in s_in; | |
| int len = sizeof(s_in); | |
| s_in.sin_family = AF_INET; | |
| s_in.sin_addr.s_addr = INADDR_ANY; | |
| s_in.sin_port = htons(0); | |
| //SOCKET s = socket(AF_INET, SOCK_STREAM, 0); // TCP | |
| SOCKET s = socket(AF_INET, SOCK_DGRAM, 0); // UDP | |
| bind(s, (SOCKADDR*) &s_in, sizeof(s_in)); | |
| getsockname(s, (SOCKADDR*) &s_in, &len); |
| 入Game Title 去Download 頁面: | |
| - 配信,event予告 | |
| - Quest | |
| + Event Quest | |
| + Challenge Quest | |
| - 貓 | |
| - Item Bag (Download 後去房間或集會所準備區Room Service 隻貓領取) | |
| - DL 特典 |
| mkdir hexo-dev | |
| cd hexo-dev | |
| [email protected]:hexojs/hexo.git | |
| cd hexo; npm i | |
| # can `npm run test` here | |
| cd .. | |
| git clone [email protected]:leesei/hexo-genstubs.git | |
| cd hexo-genstubs; npm i |
Initiative
[ecosystem] Mixin repo · Issue #240 · chancejs/chancejs
Consider splitting across multiple packages / modules? · Issue #52 · chancejs/chancejs
chance-${mixin_name}| ==================== fix ==================== | |
| config.root = "/"; | |
| url_for("#") ==> "#" | |
| url_for("#top") ==> "#top" | |
| url_for("http://www.google.com") ==> "http://www.google.com" | |
| url_for("https://www.google.com") ==> "https://www.google.com" | |
| url_for("//www.google.com") ==> "//www.google.com" |
| #!/bin/bash | |
| # update version in `package.json`, tag repo, publish to npm and push to remote | |
| # expects version as input | |
| if [ -z "$1" ]; then | |
| echo "Missing version, use those accepted by 'npm version'" | |
| echo | |
| npm version -h | |
| exit | |
| fi |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| #First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer” | |
| #I thought porting it to Python could be both a challenge and useful | |
| from sys import argv, exit, getsizeof | |
| from struct import pack_into, unpack_from | |
| def ceil4(n): |
| 'use strict'; | |
| var sinon = require('sinon'); | |
| describe.only('Tag Errors', () => { | |
| var Hexo = require('../../../lib/hexo'); | |
| var hexo = new Hexo(__dirname); | |
| before(() => { | |
| hexo.init().then(() => { |
| <html> | |
| <head> | |
| <title>Test</title> | |
| <link rel="stylesheet" href="./styles.css" /> | |
| </head> | |
| <body> | |
| <main class="container"> | |
| {% for ticket in tickets %} | |
| <section class="ticket"> | |
| <div class="content">{{ ticket }}</div> |
| #!/bin/bash | |
| # | |
| # git-su - Git Switch User | |
| # ======================== | |
| # | |
| # git-su switches user and sshCommand in the current repository. | |
| # | |
| # USAGE | |
| # ----- | |
| # |