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
| /** | |
| * Takes a raw param strings then converts it to int if integer | |
| * If separated with , then return an array | |
| * @param rawParams | |
| * @returns {Params Item Array} || { Param Item} | |
| */ | |
| function paramsMake(rawParams) { | |
| const param = rawParams.split(',').map(item => { | |
| if (Number.isNaN(parseInt(item, 8))) return item; | |
| return parseInt(item, 8); |
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
| "precommit.silent": true, | |
| "pre-commit": [ | |
| "pre-commit-eslint" | |
| ] |
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
| server { | |
| listen 80; | |
| server_name localhost; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| root /srv/build; |
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
| [{url:'stun:stun01.sipphone.com'}, | |
| {url:'stun:stun.ekiga.net'}, | |
| {url:'stun:stun.fwdnet.net'}, | |
| {url:'stun:stun.ideasip.com'}, | |
| {url:'stun:stun.iptel.org'}, | |
| {url:'stun:stun.rixtelecom.se'}, | |
| {url:'stun:stun.schlund.de'}, | |
| {url:'stun:stun.l.google.com:19302'}, | |
| {url:'stun:stun1.l.google.com:19302'}, | |
| {url:'stun:stun2.l.google.com:19302'}, |
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
| use v5.12; | |
| use warnings; | |
| use utf8; | |
| my $uname = 'thesabbir'; | |
| my %projects; | |
| for my $year (2014..2016) { | |
| for my $month (1..12) { | |
| last if $year == 2016 && $month > 1; | |
| my $from = sprintf '%4d-%02d-01', $year, $month; |
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
| 1: Strider-CD/strider-bitbucket | |
| 1: TheMightyFingers/mightyeditor | |
| 1: ajenti/ajenti | |
| 1: appxit/superpos | |
| 1: awesomebua/awesomebua | |
| 1: balderdashy/angularSails | |
| 1: balderdashy/sails | |
| 1: bebangladesh/BeReviewsDhaka4 | |
| 2: choyan/KreFolio | |
| 1: code-shoily/vimrc |
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
| // using redux thunk async action | |
| export function initiateNewChat(id, message) { | |
| return (dispatch, getState) => { | |
| // get friend from friends store | |
| const friend = getState() | |
| .friends[id]; | |
| if (friend) { | |
| // if friend exists we initiate new chat | |
| return { | |
| type: 'INITIATE_CHAT', |
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
| function filterFriends(friends, id, status) { | |
| const nextStatus = status === 'available' ? 'unavailable' : 'available'; | |
| const online = []; | |
| const offlineFriends = friends.filter((friend) => { | |
| if (friend.contact_uuid !== id && friend.status !== status) { | |
| friend.status = nextStatus; | |
| return true; | |
| } | |
| friend.status = status; |
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
Show hidden characters
| { | |
| "presets": ["es2015", "react"], | |
| "plugins": ["react-hot-loader/babel"] | |
| } |
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
| #!/bin/bash | |
| echo "Select on option:" | |
| echo "1) Set up new PoPToP server AND create one user" | |
| echo "2) Create additional users" | |
| read x | |
| if test $x -eq 1; then | |
| echo "Enter username that you want to create (eg. client1 or john):" | |
| read u | |
| echo "Specify password that you want the server to use:" | |
| read p |