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
/dts-v1/ | |
/ { | |
shifter: 74hc595a@0 { | |
compatible = "ti,xx74hc595a"; | |
a-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | |
b-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | |
c-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
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 re | |
import json | |
from mitmproxy import ctx | |
from urllib.parse import quote | |
import string | |
import requests | |
def response(flow): | |
path = flow.request.path | |
if path == '/question/bat/findQuiz': |
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 ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" | |
"regexp" | |
"strings" |
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
define([ "when/parallel", "jquery" ], function (parallel, $) { | |
var tasks = [ "url1", "url2", "url3" ].map(function (url) { | |
return function () { | |
return $.get(url); | |
}; | |
}); | |
parallel(tasks) | |
.then(function (results) { |
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
# coding: utf-8 | |
from flask import request, g | |
from functools import wraps | |
from flask import abort, session, redirect, url_for, flash | |
from .models import Topic, Attachment | |
from . import roles | |
def require_visitor(func): | |
"""仅允许非登陆用户访问,如signin页面""" |