This file contains 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 | |
$you = 1; | |
$p = 2; | |
$f = [ $you, $p ]; | |
// Random conversation | |
$conv = mt_rand( 0, 3 ); | |
// At the beginning set the last date of conversation | |
$cur_date = '2017-02-06'; | |
$x[ $p ][ $you ] = [ $cur_date => $conv ]; |
This file contains 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
export function load_cat_names() { | |
return dispatch => { | |
return fetch( '/?token=' + vitals.token, { | |
method : 'POST', | |
headers : { | |
'X-Requested-With' : 'XMLHttpRequest' | |
}, | |
body : JSON.stringify({ action : 'cat_names' }), | |
credentials : 'same-origin' | |
}) |
This file contains 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
#!/usr/bin/python | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
import urllib2 | |
class Form( QDialog ): | |
def __init__( self, parent = None ): | |
super( Form, self ).__init__( parent ) |
NewerOlder