Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| // when T is any|unknown, Y is returned, otherwise N | |
| type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N; | |
| // when T is never, Y is returned, otherwise N | |
| type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N; | |
| // when T is a tuple, Y is returned, otherwise N | |
| // valid tuples = [string], [string, boolean], | |
| // invalid tuples = [], string[], (string | number)[] |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <ctype.h> | |
| typedef enum e_priority { | |
| PRIMARY = 0, | |
| UNARY, | |
| MULTIPLICATIVE, | |
| ADDITIVE, | |
| SHIFT, |
| package ; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.entity.Player; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; |
| Go to Bitbucket and create a new repository (its better to have an empty repo) | |
| git clone git@bitbucket.org:abc/myforkedrepo.git | |
| cd myforkedrepo | |
| Now add Github repo as a new remote in Bitbucket called "sync" | |
| git remote add sync git@github.com:def/originalrepo.git | |
| Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
| git remote -v |