-
Sort branches by committerdate (DESC)
git branch --sort=-committerdate
-
push local branch to remote and setup the local branch to track remote branch
git push -u origin <branch>
This file contains hidden or 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
package com.yourcompany.util; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.util.concurrent.Executor; | |
public class GenericUdpListener implements Runnable | |
{ | |
private static final int ZERO = 0; | |
private int port; |
This file contains hidden or 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
In addition to the traditional globs (supported by all Bourne-family shells), Bash (and Korn Shell) offer extended globs, which have the expressive power of regular expressions. Korn shell enables this by default; in Bash, you can enable it using a command: | |
> shopt -s extglob | |
and disbale it using: | |
> shopt -u extglob | |
Example: |
This file contains hidden or 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
package com.yourcompany.util; | |
import android.content.Context; | |
import android.support.v4.content.AsyncTaskLoader; | |
import android.util.Log; | |
import com.yourcompany.util.GenericAsyncTaskLoader.ServiceData; | |
/** | |
* A generic Loader that delegates its actual loading operation to a | |
* CustomLoaderCallbacks<T> instance passed through the constructor. |
This file contains hidden or 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
scp username@remotehost:"~/mydir/{lib1-*.jar,lib2-*.jar}" . |
This file contains hidden or 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
### | |
This directive is based on an example on google's developers website that shows how to use | |
the places api to implement an address autocomplete textbox: | |
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform | |
Here is an example of how to use it in your application: | |
<html ng-app="your-app"> | |
<head> |
This file contains hidden or 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
(docker-vm) Boot2Docker v1.9.1 has a known issue with AUFS. | |
(docker-vm) See here for more details: https://github.com/docker/docker/issues/18180 | |
(docker-vm) Consider specifying another storage driver (e.g. 'overlay') using '--engine-storage-driver' instead. |
This file contains hidden or 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
import { ObjectType, Field } from "@nestjs/graphql"; | |
@ObjectType() | |
export class PageInfo { | |
@Field({ nullable: true }) | |
startCursor: string; | |
@Field({ nullable: true }) | |
endCursor: string; |
This file contains hidden or 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
package com.vishal2376.animations.ui.theme | |
import androidx.compose.animation.animateColorAsState | |
import androidx.compose.animation.core.EaseInOut | |
import androidx.compose.animation.core.animateFloatAsState | |
import androidx.compose.animation.core.tween | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box |