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
| #!/usr/local/bin/python3 | |
| """ | |
| @author Ryan Wilson-Perkin | |
| Fetch a list of flaky tests from a CircleCI project. | |
| Searches the last 30 builds that have failed on the master branch, downloads any | |
| junit.xml artifacts it finds for them, and reports the tests that have failed. | |
| Branch name, test results file, number of builds, and number of results are all |
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
| #!/usr/local/bin/python3 | |
| """ | |
| Count all the lines I've ever changed on GitHub | |
| Setup: | |
| pip install requests tqdm GitPython | |
| Usage: | |
| ./commits.py | |
| """ |
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
| DONTSYNC |
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 React from 'react'; | |
| import withTracking from 'withTracking'; | |
| export class MyLink extends React.Component { | |
| static propTypes = { | |
| text: PropTypes.string, | |
| href: PropTypes.string, | |
| track: PropTypes.func, | |
| }; |
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 re | |
| import sys | |
| ROOT_DIR = 'project-name' | |
| PATTERN = re.compile( | |
| """(?P<prefix>.*from *['"])""" | |
| """(?P<path>\..*)""" | |
| """(?P<suffix>['"].*)""" | |
| ) |
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
| Program terminated with signal SIGSEGV, Segmentation fault. | |
| warning: Unexpected size of section `.reg-xstate/26' in core file. | |
| #0 __cp_end () at src/thread/x86_64/syscall_cp.s:29 | |
| 29 src/thread/x86_64/syscall_cp.s: No such file or directory. | |
| [Current thread is 1 (LWP 26)] | |
| (gdb) bt | |
| #0 __cp_end () at src/thread/x86_64/syscall_cp.s:29 | |
| #1 0x00007fd6161eecd8 in __syscall_cp_c (nr=202, u=<optimized out>, v=<optimized out>, w=<optimized out>, x=<optimized out>, y=<optimized out>, | |
| z=0) at src/thread/pthread_cancel.c:35 |
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 sys | |
| sys.stdout.write('This is a public package\n') |
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 sys | |
| sys.stdout.write('This is a private package\n') |
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
| #!/usr/local/bin/python | |
| """ | |
| Reads Xunit XML files and prints the (sorted) test names to stdout. | |
| usage: python create_test_list.py file [file...] | |
| """ | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def xmlToList(filename): |
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
| #!/usr/local/bin/python | |
| """ | |
| Generate a CSV file of your organization's GitHub repositories. | |
| Results in a CSV file with the following columns: | |
| - name: The name of the repository | |
| - private: True if this is a private repository, else False | |
| - fork: True if this repository is the result of a fork, else False | |
| - created_at: The datetime this repository was created | |
| - updated_at: The datetime this repository was last updated |