Video: How to enable “Hey Siri” on MacOS and useful Siri commands
Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94
Keeping track of all your open pull requests, PRs, in Github is hard.
This problem is multiplied when you contribute to multiple projects.
It’s even worse when you’re one of the few with merge rights to a popular repository with a lot of activity.

Luckily, Github has advance search features that allow you to instantly find open PRs from a user.
Here’s how.
1. Go to https://github.com/search
2. Find the username of the person on github. Their username is on their github profile under their name.
3. Search
is:open is:issue author:${USER_NAME}
Example:
is:open is:issue author:LarryBattle
Github search for my open PRs.

I’ve used this search recently to close a few PRs back from 2012!

More info:
– Github Advance Search, useful for creating complex queries
– Searching on github
Here’s an example of how to use recover() in Google Go.
package main
import "fmt"
func gandalf( doTalkTo bool ){
defer catch()
if(doTalkTo){
// Panic stops execution of the current function and stops unwinding the stack, calling an deferred functions along the way.
panic("You shall not pass!")
}
}
// catch() must be called as a deferred
func catch(){
// recover() regains control over the program execution when panic() is called.
// recover() returns is the argument passed from panic()
if r := recover(); r != nil {
fmt.Println("Error:", r)
} else {
fmt.Println("No problems occurred")
}
}
func main() {
gandalf(true)
gandalf(false)
//unwinds to the top of the stack and ends the program
panic("Where am I going?");
}
Output: Error: You shall not pass! No problems occurred panic: Where am I going? goroutine 1 [running]: main.main()
Demo: http://play.golang.org/p/xu9Jd1YI0T
More information here:
Effective Go - The Program Language

Here are 4 simple steps to convert a repeating decimal to a fraction.
Step 1: Check to see if the number has a repeating decimal. Stop if it doesn’t and do normal conversion.
Step 2: Split the decimal into 3 parts; i, x, r. Such that the decimal equals `i.x(r)*`.
Step 3: Create a fraction in the form `a/b`.
a = ((ixr as int) – (ix as int))
b = ((10^x.length)*(10^r.length – 1))
Step 4: (optional) Reduce the fraction by dividing by the greatest common denominator.
Example:
4/3 = 1.333… which sets i = “1”, x = “”, r = “3”.
a = (13 – 1) = 12, b = ((10^0)*(10^1 – 1)) = 9
a/b = 12 / 9 = 4/3
Ratio.js does this for you when the `reduce` function is called.
Example using Ratio.js:
Ratio.parse( "1/3" ).reduce().toString() === "1/3"; Ratio.parse( 4/3 ).reduce().toString() === "4/3"; Ratio.parse( 0.123451234512345 ).reduce().toString() === "4115/33333"; Ratio.parse( 0.987987989798979897 ).reduce().toString() === "978108109901/990000000000"; |