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
sudo vim /usr/bin/music-control | |
# put mpris2-remote.py content | |
chmod +x /usr/bin/music-control | |
sudo vim /usr/bin/pause-on-lock-screen | |
# put lock-screen.sh content | |
chmod +x /usr/bin/lock-screen |
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 { Injectable } from '@angular/core'; | |
import { Subject } from 'rxjs/Subject'; | |
interface State { | |
isLoading: boolean; | |
blockerLoading: boolean; | |
} | |
/** | |
* Responsible by loadingState |
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
<?php | |
/** | |
* Convert array with key in dot notation for multidimensional array | |
* | |
* Example: | |
* Input: [ "name.firstname" => "Rafael", "name.lastname" => "Dantas", "a.b.c" => "d" ] | |
* Output: [ "name" => [ "firstname" => "Rafael", "lastname" => "Dantas" ], "a" => [ "b" => [ "c" => "d" ] ] | |
* | |
* @param $array Array with key in dot notation |