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
interactions: | |
- request: | |
body: null | |
headers: | |
Accept: | |
- '*/*' | |
Accept-Encoding: | |
- gzip, deflate | |
Connection: | |
- keep-alive |
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
import gzip | |
from re import compile | |
from os.path import exists | |
from sys import exit, argv | |
from xml.dom.minidom import parseString | |
import codecs | |
try: | |
import urlgrab | |
except ImportError: | |
print "run 'git clone git://github.com/palfrey/urlgrab.git' and re-run this script" |
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
import csv | |
import json | |
import sys | |
import threading | |
import urllib.parse | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
from pathlib import Path | |
import psycopg2 |
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
import json | |
import sys | |
import urllib.parse | |
from pathlib import Path | |
import psycopg2 | |
url = sys.argv[1] | |
res = urllib.parse.urlparse(url) | |
conn = psycopg2.connect( |
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
/* automatically generated by rust-bindgen */ | |
pub const NAPI_VERSION: u32 = 5; | |
pub const true_: u32 = 1; | |
pub const false_: u32 = 0; | |
pub const __bool_true_false_are_defined: u32 = 1; | |
pub const NAPI_VERSION_EXPERIMENTAL: u32 = 2147483647; | |
pub const NAPI_MODULE_VERSION: u32 = 1; | |
pub type wchar_t = ::std::os::raw::c_int; | |
pub type max_align_t = u128; |
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
[package] | |
name = "structopt-bug" | |
version = "0.1.0" | |
authors = ["Tom Parker-Shemilt <palfrey@tevp.net>"] | |
edition = "2018" | |
[dependencies] | |
# This works | |
# structopt = "=0.3.7" | |
# This doesn't work |
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
[dev-dependencies] | |
serial_test = "*" | |
serial_test_derive = "*" |
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
#[test] | |
#[serial] | |
fn test_something() { | |
// rest of your test | |
} | |
#[test] | |
#[serial(db)] | |
fn test_something_db() { | |
// do something probably database related |
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
let ast: syn::ItemFn = syn::parse(input).unwrap(); | |
let name = ast.ident; | |
let block = ast.block; | |
let attrs = ast.attrs; | |
let gen = quote! { | |
#(#attrs) | |
* | |
fn #name () { | |
serial_test::serial_core(#key, || { | |
#block |
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
03-10 09:30:05.508 22830 22830 D AndroidRuntime: Shutting down VM | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: FATAL EXCEPTION: main | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: Process: org.moire.opensudoku, PID: 22830 | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=9; index=-4 | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: at org.moire.opensudoku.game.CellCollection.setLocation(CellCollection.java:362) | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: at org.moire.opensudoku.gui.SudokuPlayActivity$6.onLocationChanged(SudokuPlayActivity.java:519) | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:292) | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: at android.location.LocationManager$ListenerTransport.-wrap0(Unknown Source:0) | |
03-10 09:30:05.513 22830 22830 E AndroidRuntime: at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager |
NewerOlder