# home_controller
# ...
def index
# ...
Rails.logger.info "BEFORE_PRIMARY_LOCATION_RSS PID |#{$$}| is: " + `ps -o rss -p #{$$}`.chomp.split("\n").last
# ...
end
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
Homebrew build logs for glibc on "openSUSE Leap 42.3" | |
Build date: 2017-10-31 11:09:37 |
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
pragma solidity >=0.4.22 <0.7.0; | |
/** | |
* @title Storage | |
* @dev Store & retreive value in a variable | |
*/ | |
contract Storage { | |
uint256 number; |
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
pragma solidity 0.5.1; | |
contract MyContract { | |
enum State { Waiting, Ready, Active } | |
State public state; | |
constructor() public { | |
state = State.Waiting; | |
} |
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
pragma solidity 0.5.1; | |
contract MyContract { | |
enum State { Waiting, Ready, Active } | |
State public state; | |
constructor() public { | |
state = State.Waiting; | |
} |
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
// Correrlo con: | |
// node recursividad.js | |
/* FIBONACCI | |
1, 1, 2, 3, 5, 8, 13, 21 | |
1 | |
1 | |
1+1 = 2 | |
2 + 1 = 3 | |
3 + 2 = 5 |
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
# spec results BEFORE changes in PR 596: https://github.com/rspec/rspec-support/pull/596 | |
describe "fuzzy matcher anything" do | |
it "outputs only key value pair that triggered diff, anything_key should absorb actual value" do | |
actual = { | |
:fixed => "fixed", | |
:trigger => "trigger", | |
:anything_key => "bcdd0399-1cfe-4de1-a481-ca6b17d41ed8" | |
} | |
expected = { | |
:fixed => "fixed", |
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
# spec results AFTER changes in PR 596: https://github.com/rspec/rspec-support/pull/596 | |
describe "fuzzy matcher anything" do | |
it "outputs only key value pair that triggered diff, anything_key should absorb actual value" do | |
actual = { | |
:fixed => "fixed", | |
:trigger => "trigger", | |
:anything_key => "bcdd0399-1cfe-4de1-a481-ca6b17d41ed8" | |
} | |
expected = { | |
:fixed => "fixed", |
Source: https://dev.to/augustohp/files-with-the-most-changes-on-git-repository-46l1
Command to get all files with counts on git log
git log --name-only --pretty="format:" | sed '/^\s*$/'d | sort | uniq -c | sort -nr
# get head files:
git log --name-only --pretty="format:" | sed '/^\s*$/'d | sort | uniq -c | sort -nr | head
# filter files, eg: by "controller" pattern
git log --name-only --pretty="format:" | sed '/^\s*$/'d | grep controller | sort | uniq -c | sort -nr | head