The file page.st goes in the templates/ directory in the Gitit wiki home directory. You'll put the Ace JavaScript and CSS files in static/.
This file contains hidden or 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
| .img-circle{behavior:url(/scripts/PIE.htc)} | |
| .img-rounded{behavior:url(/scripts/PIE.htc)} | |
| .img-thumbnail{behavior:url(/scripts/PIE.htc)} | |
| .table-bordered{behavior:url(/scripts/PIE.htc)} | |
| select,textarea,input,code,pre,kbd,pre{behavior:url(/scripts/PIE.htc)} | |
| .input-group-addon{behavior:url(/scripts/PIE.htc)} | |
| .btn{behavior:url(/scripts/PIE.htc)} | |
| .dropdown-menu{behavior:url(/scripts/PIE.htc)} | |
| .form-control{behavior:url(/scripts/PIE.htc)} | |
| .panel{behavior:url(/scripts/PIE.htc)} |
This file contains hidden or 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 socket, ssl, json, struct | |
| import binascii | |
| def Payload(alert='', badge=1, data={}): | |
| payload = { | |
| 'aps': { | |
| 'alert':alert, | |
| 'sound':'k1DiveAlarm.caf', | |
| 'badge':badge, | |
| }, |
This file contains hidden or 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/env python | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.options | |
| import tornado.web | |
| import tornado.httpclient | |
| import tornado.gen | |
| from tornado.concurrent import run_on_executor | |
| from concurrent.futures import ThreadPoolExecutor |
This file contains hidden or 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
| {% extends 'base.html' %} | |
| {% import 'macros.html' as macros %} | |
| {% block content %} | |
| <div class="row"> | |
| <div class="col-xs-12 col-md-3 col-sm-4 col-sm-offset-4 col-md-offset-4 col-lg-3 col-lg-offset-4"> | |
| <div class="login-message"> | |
| Login to AwesomeService! | |
| </div> | |
| {% call macros.render_form(form, action_url=url_for('login_view'), action_text='Login', | |
| class_='login-form') %} |
This file contains hidden or 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 os | |
| import subprocess | |
| from sqlalchemy import Column, String, Integer, Float, MetaData, Table | |
| from sqlalchemy import create_engine | |
| from alchimia import TWISTED_STRATEGY | |
| from flask import json |
This file contains hidden or 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
| """ | |
| Defines a function `auto_insert` to help with | |
| `pygit2.Repository.TreeBuilder`s. | |
| Just create the top-level `TreeBuilder`, and it will handle all subtree | |
| creation if you give it paths. | |
| """ | |
| import shutil | |
| from tempfile import mkdtemp |
This file contains hidden or 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/env python | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.options | |
| import tornado.web | |
| import tornado.httpclient | |
| import tornado.gen | |
| from tornado.concurrent import run_on_executor | |
| from concurrent.futures import ThreadPoolExecutor |
This file contains hidden or 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
| package main | |
| import ( | |
| git "github.com/libgit2/git2go" | |
| "log" | |
| ) | |
| func credentialsCallback(url string, username string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) { | |
| ret, cred := git.NewCredSshKey("git", "/home/vagrant/.ssh/id_rsa.pub", "/home/vagrant/.ssh/id_rsa", "") | |
| return git.ErrorCode(ret), &cred |
- Modify index.txt with your output path and proxy info
- Use Text Builder to build configuration for Surge:
$ text-builder -index /path/to/index.txtOr run$ sh build-allto build all your index files. - Import configuration via AirDrop/iTunes/Dropbox/iCloud
本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.