I hereby claim:
- I am tonijz on github.
- I am tonijz (https://keybase.io/tonijz) on keybase.
- I have a public key whose fingerprint is 792D EA3D D080 098E A71F E79A 6503 E96F 16BA 02EF
To claim this, I am signing this object:
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'arcticicestudio/nord-tmux' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @continuum-restore 'on' | |
# Fixing tmux and vim relationship in iterm2 |
{ | |
"status": "OK" | |
} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
header('content-type:text/plain'); | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, 'http://10.10.10.2/Web/Common/Login.do'); | |
curl_setopt($curl, CURLOPT_POST, 1); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, 'username=mvfadmin&password=mvfadmin&submitType=LOGIN'); | |
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); |
// BAD | |
// Hard to read because of php syntax everywhere... If whole file will be written like this, | |
// It gonna take a lot of time for others to understand | |
<tr> | |
<td> | |
<?php if($c['status'] == "Live") { ?> | |
<span class="label label-success"> | |
<?php } else { ?> | |
<span class="label label-warning"> |
<html> | |
<head> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="modal"> | |
<form method="post" action=""> | |
<input type="text" name="field1" value="test"> | |
<input type="text" name="field2" value="test"> | |
<input type="text" name="field3" value="test"> |
<html> | |
<head> | |
</head> | |
<body> | |
<div class="container"> | |
<form method="post" action=""> | |
<div id="error-msg" style="display:none;">loading...</div> | |
<input type="text" name="something1"> | |
<input type="text" name="somethin2"> | |
<input type="text" name="somethin3"> |
from twisted.internet import task | |
from twisted.internet import reactor | |
import time | |
def say_hello(): | |
rand = time.time() | |
x = 0 | |
while True: |
In [32]: data = [('TEST', 1), ('TEST2', 2), ('TEST3', 3)] | |
In [33]: print [x[1] for x in data if x[0] == 'TEST'] | |
[1] | |
In [34]: |
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) | |
[GCC 4.4.5] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from urlparse import parse_qs | |
>>> url = "test=1&test2=2&test3=3" | |
>>> parse_qs(url) | |
{'test': ['1'], 'test3': ['3'], 'test2': ['2']} | |
>>> result = parse_qs(url) | |
>>> result.get('test') | |
['1'] |