rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum remove php-common
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
/etc/init.d/httpd restart
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
/* | |
The Impossible Math Solver | |
There will be a predefined target and the process will start with 2 numbers. There will be a set | |
of predefined operations from which any operation can be used any number of times in any order. | |
Each operation will accept 2 numbers. First one is the output of the previous operation and the | |
second one is any number generated from previous operations. Generated numbers must be unique. | |
The goal is to create a list of operation where the last operation will generate the predefined | |
target. | |
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 wordMatch(s1,s2){ | |
var a1=s1.toLowerCase().split(/[^A-Za-z]/); | |
var a2=s2.toLowerCase().split(/[^A-Za-z]/); | |
for(var i=0;i<a1.length;i++) | |
if(a2.indexOf(a1[i])>=0) | |
return true; | |
return false; | |
} |
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
/* | |
"dependencies": { | |
"chalk": "^1.1.3", | |
"cheerio": "^0.22.0", | |
"moment": "^2.16.0", | |
"superagent": "^2.3.0" | |
} | |
Usage: | |
node theflash [session] where session is optional, latest if not specified | |
*/ |
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 | |
/** | |
* @author Koushik Seal <[email protected]> | |
* @version 1.0 | |
*/ | |
class SerializeBeautifier{ | |
/** | |
* input for beautify | |
* | |
* @var 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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed |
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 sys | |
import os | |
import socket | |
import time | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.settimeout(2) | |
if "--listen" in sys.argv: | |
print "WalkieTalkie Listener Turned On.." | |
server_address = ('', 9434) |
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 getNested(obj,prop){ | |
var _prop=prop.split(".") | |
for(var i=0;i<_prop.length;i++){ | |
if(_prop[i] in obj) | |
obj=obj[_prop[i]] | |
else | |
return; | |
} | |
return obj; | |
} |
OlderNewer