Нужно включить отладку по USB:
Settings -> Applications -> Development -> USB debugging
Наш девайс должен быть виден.
$ adb devices
List of devices attached
100044ddd111 device
Нужно включить отладку по USB:
Settings -> Applications -> Development -> USB debugging
Наш девайс должен быть виден.
$ adb devices
List of devices attached
100044ddd111 device
#!/bin/bash | |
echo "SELECT | |
CONCAT('SELECT ',MIN(c.COLUMN_NAME),' FROM ',c.TABLE_NAME,' WHERE ',MIN(c.COLUMN_NAME),' IS NOT NULL;') | |
FROM | |
information_schema.COLUMNS AS c | |
LEFT JOIN ( | |
SELECT DISTINCT | |
TABLE_SCHEMA,TABLE_NAME,COLUMN_NAME | |
FROM | |
information_schema.KEY_COLUMN_USAGE |
Sample usage:
seq 1 1000 | ./stddev.sh
Sample output:
MEAN 68% 95% 97%
500.50 789.32 1078.14 1366.96
package main | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
"os" | |
"golang.org/x/image/font" | |
"golang.org/x/image/font/basicfont" |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { | |
var count int |
<?php | |
/* | |
Run with all available processing power: | |
sudo nice -n -20 php startswith_benchmark.php | sort -h | |
Running with PHP 7.0.7-3 gives: | |
1.6±0.0014 msec - strncmp_startswith_shortcut |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles> | |
<profile name="Symfony"> | |
<setting id="indentationChar" value=" "/> | |
<setting id="insert_space_after_opening_paren_in_declare" value="false"/> | |
<setting id="insert_space_before_closing_paren_in_declare" value="false"/> | |
<setting id="insert_space_before_opening_paren_in_declare" value="false"/> | |
<setting id="org.eclipse.php.core.formatter.insert_new_line_in_function_invoke" value="3"/> | |
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split" value="false"/> | |
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy" value="0"/> |
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE yml_catalog SYSTEM "shops.dtd"> | |
<yml_catalog date="2016-03-14 18:03"> | |
<shop> | |
<name>Shop Name</name> | |
<company>Company Name</company> | |
<url>https://www.example.com/</url> | |
<currencies> | |
<currency id="RUR" rate="1"/> | |
<currency id="USD" rate="81.00"/> |
First:
git format-patch -1 <sha1>
Then:
git am ../path/to/0001-file.patch
If patch did not apply cleanly:
mv --no-clobber .git/hooks/post-receive .git/hooks/post-receive-make
curl https://gist.githubusercontent.com/sanmai/ef0c2dd609ae72db03af/raw/chained-hook.sh > .git/hooks/post-receive
curl https://raw.githubusercontent.com/chriseldredge/git-slack-hook/master/git-slack-hook > .git/hooks/post-receive-slack
chmod +x .git/hooks/post-receive-* .git/hooks/post-receive
Configuration:
git config hooks.slack.webhook-url 'https://hooks.slack.com/services/...'
git config hooks.slack.repo-nice-name 'My Awesome Repository'