Original Author: Rui Ueyama (creator of the mold linker)
Translated by @windowsboy111
Minimally edited by @lleyton
# Remove duplicated lines from a .vtt file generated by youtube-dl when | |
# downloading auto-subs from a Youtube video using the --write-auto-sub option | |
# This script only prints the lines so save the edited subs as: | |
# | |
# python this_script.py original_sub.vtt > new_sub.vtt | |
import re | |
import sys | |
f = open(sys.argv[1]) |
import argparse | |
import warnings | |
class DeprecateAction(argparse.Action): | |
def __call__(self, parser, namespace, values, option_string=None): | |
warnings.warn("Argument %s is deprecated and is *ignored*." % self.option_strings) | |
delattr(namespace, self.dest) | |
/* | |
** $Id: sch_custom.c 1.3 2015/03/01 14:01:44EST sstrege Exp $ | |
** | |
** Copyright 2007-2014 United States Government as represented by the | |
** Administrator of the National Aeronautics and Space Administration. | |
** All Other Rights Reserved. | |
** | |
** This software was created at NASA's Goddard Space Flight Center. | |
** This software is governed by the NASA Open Source Agreement and may be | |
** used, distributed and modified only pursuant to the terms of that |
#import <Foundation/Foundation.h> | |
#import <assert.h> | |
//Compile with `clang -Os -framework Foundation -fno-objc-arc inlinestorage.m -o inline, run with `inline clever` or `inline naive` | |
/* | |
NaiveArray implements a simple immutable NSArray-like interface in probably the most obvious way: store a pointer to a C array of objects | |
*/ | |
@interface NaiveArray : NSObject { | |
NSUInteger count; |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
There have been a lot mutation testing systems, but very few have them have seen succesfull use in industry.
This document is a set of notes that might be helpful for anyone thinking of implementing a mutation testing system for another language.
It represents some of the things we learnt while creating pitest. The choices made by pitest are not neccessarily the best choices for your system. Some of these choices are appropriate only because of the particular quirks of Java and the JVM, and some of them are simply the first idea that we had.
#import <Foundation/Foundation.h> | |
@implementation NSObject (Private) | |
- (float)doSomethng { | |
return 42.0; | |
} | |
@end | |
int main(int argc, char * argv[]) { | |
@autoreleasepool { | |
NSObject * object = [NSObject new]; |
property fileToSearch : "UCSongTrainerRenderingController.h" | |
property finalPath : "" | |
set finalPath to do shell script ("mdfind -name " & fileToSearch & " -onlyin /") | |
set finalPath to replace_chars(finalPath, "/Users/azimin/iOSDeveloper/Uberchord-iOS", "$(PROJECT_DIR)") | |
set finalPath to replace_chars(finalPath, "/" & fileToSearch, "") | |
set finalPath to replace_chars(finalPath, " ", "\\ ") | |
set the clipboard to finalPath | |
on replace_chars(this_text, search_string, replacement_string) |