I hereby claim:
- I am lijinma on github.
- I am jinma (https://keybase.io/jinma) on keybase.
- I have a public key ASBA3XL8cTF-2QTXhNy0ytdS7miSIyNq9q0Jh-aKSgLwQQo
To claim this, I am signing this object:
const axios = { | |
get(url, { headers = {} }) { | |
return new Promise((resolve, reject) => { | |
const xhr = window.XMLHttpRequest | |
? new XMLHttpRequest() | |
: new ActiveXObject("Microsoft.XMLHTTP"); | |
xhr.open("get", url); | |
xhr.withCredentials = true; | |
// Object.entries(headers).forEach(([key,value]) => xhr.setRequestHeader(key, value)); | |
xhr.send(null); |
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am lijinma on github. | |
* I am jinma (https://keybase.io/jinma) on keybase. | |
* I have a public key ASBA3XL8cTF-2QTXhNy0ytdS7miSIyNq9q0Jh-aKSgLwQQo | |
To claim this, I am signing this object: |
{"sig":"9d66b4810599f10c4f581a9b2b2f7c94e3188cc49fa37e0532e5f74efca53cbb4c0f8fbfe26d2166579d402768176bc58a04072f5c1276a120f7a45f6c62e4fc0","msghash":"abb270f97dd113bbeae80af26dee0ba64ee6c5d37140f42173de077ec5bec462"} |
.markdown-here-wrapper { | |
font-size: 16px; | |
line-height: 1.8em; | |
letter-spacing: 0.1em; | |
} | |
pre, code { | |
font-size: 14px; | |
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace; |
#! /bin/bash | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush any existing rules, leaving just the defaults | |
iptables -F |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
Issue: | |
checking for pixman... no | |
configure: error: pixman >= 0.10.0 is required | |
(http://cairographics.org/releases/) | |
Fix: | |
Execute this command before you configure Cairo: |
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.restart='nginx.stop && nginx.start' | |
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist" | |
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist" | |
alias php-fpm.restart='php-fpm.stop && php-fpm.start' | |
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.restart='mysql.stop && mysql.start' | |
alias nginx.logs.error='tail -250f /usr/local/etc/nginx/logs/error.log' |
#include <iostream> | |
using namespace std; | |
int maxSumOfSubArray (int * array, int length) | |
{ | |
int sum = 0; | |
int result = 0; | |
for (int index = 0; index < length; index ++) { | |
if (sum + array[index] > array[index]) { | |
sum = sum + array[index]; |