Why?
This:
.action {
@extend .ml-3;
}
Why?
This:
.action {
@extend .ml-3;
}
java -jar /home/expert/work/tools/apktool.jar d net.flixster.android-9.1.3@APK4Fun.com.apk
android:networkSecurityConfig="@xml/network_security_config"
attribute to application
element.<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
# Mac | |
IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts html_out } | |
# Linux | |
IO.popen(’xsel –clipboard –input’, ‘r+’) { |clipboard| clipboard.puts html_out } |
brew cask install p4v
Git provides a simple way to find out where some code was modified or removed from your codebase. You can use git bisect
for that and the processes can be completely automated.
As example I will try to find out when the method send_email_notification
was removed from the file app/models/person.rb
.
So you have to create a automated bash file, or other kind of script, that should return 0
when the method is found and 1
otherwise. So git can run this script for each commit until it returns 1
, which means that the method was removed in that commit. There's the script we gonna use:
if [[ `cat app/models/person.rb | grep send_email_notification` ]]; then
require 'benchmark' | |
Benchmark.bmbm do |x| | |
x.report('Break') do | |
1_000_000.times do | |
break | |
end | |
end |
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
Note: Some of these keymapping are specific to IdeaVim plugin. If you don't use IdeaVim (what' wrong with you :)), I've tried to point out where they differ, but I could have missed a few
Ctrl-P
- Popup parameter documentation for method calls(defun copy-current-line-position-to-clipboard () | |
"Copy current line in file to clipboard as '</path/to/file>:<line-number>'" | |
(interactive) | |
(let ((path-with-line-number | |
(concat (buffer-file-name) ":" (number-to-string (line-number-at-pos))))) | |
(x-select-text path-with-line-number) | |
(message (concat path-with-line-number " copied to clipboard")))) | |
(define-key global-map (kbd "M-l") 'copy-current-line-position-to-clipboard) |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |