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
$ cat test.py | |
#!/usr/bin/env python3 | |
import datetime | |
import random | |
dividends = [] | |
divisors = [] | |
for i in range(1000 * 1000): |
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
diff --git a/bin/formatter/setup_common.pl b/bin/formatter/setup_common.pl | |
index 36170cda1649..b21890972dbd 100755 | |
--- a/bin/formatter/setup_common.pl | |
+++ b/bin/formatter/setup_common.pl | |
@@ -278,13 +278,13 @@ sub check_important_files { | |
return if ( $::suite_version > 4 | |
&& !$ENV{'SPEC_CHECK'}); | |
$::check_integrity = 1; | |
- foreach my $important_file (jp('bin', basename($0)), | |
- grep { m/$re/ } keys %::file_md5) { |
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 main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) | |
func main() { | |
runtime.GOMAXPROCS(1) |
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
#include <stdio.h> | |
char a[] = "abc"; | |
char *b = "def"; | |
int main(void) | |
{ | |
b = a; | |
return 0; | |
} |
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
#include <stdio.h> | |
char a[] = "abc"; | |
int main(void) | |
{ | |
printf("%p\n", a); | |
return 0; | |
} |
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
.file "arr.c" | |
.globl a | |
.data | |
.type a, @object | |
.size a, 4 | |
a: | |
.string "abc" | |
.section .rodata | |
.LC0: | |
.string "%p\n" |
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
#!/usr/bin/env python | |
import os | |
import sys | |
for filename in os.listdir('./'): | |
if not filename.endswith('.rpm'): | |
continue | |
if sys.argv[1][-1] == '/': | |
sys.argv[1] = sys.argv[1][0:-1] |
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
#!/usr/bin/env monkeyrunner | |
import time | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
device = MonkeyRunner.waitForConnection() | |
# Touch down screen | |
device.touch(100, 500, MonkeyDevice.DOWN) |
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
repo forall -c git log --pretty=format:"%h %an<%ae>, %ad : %s" android-4.1.1_r1..android-4.1.2_r1 > 4.1.1_r1_to_4.1.2_r1 |
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
obj-m += android_module.o | |
all: | |
make -C <path of emulator kernel source code directory> M=$(PWD) modules | |
clean: | |
make -C <path of emulator kernel source code directory> M=$(PWD) clean |
NewerOlder