dmesg output:
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
void SyncService::sync() | |
{ | |
QUrl url(SYNC_URL); | |
QNetworkRequest request(url); | |
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); | |
QNetworkAccessManager *manager = new QNetworkAccessManager(this); | |
connect(manager, SIGNAL(finished(QNetworkReply*)), |
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
solution(V):- | |
formula(F), | |
sat(F, V). | |
formula([[-3, 14, -2], [9, 8, -5], [-7, 15, -1], [5, -6, -7], [4, -10, -11], | |
[-2, 13, 5], [-1, 4, 14], [9, -2, 5], [-6, 11, -2], [-12, 10, 9], [-15, 9, -6], | |
[9, 15, 4], [1, 2, -9], [-5, -2, 14], [-8, 15, 10], [13, -9, -4], [11, -10, -3], | |
[-6, 4, -13], [9, -7, -11], [4, 5, -13], [-10, -1, -9], [-8, -2, 13], [-10, -3, -7], | |
[-1, 7, 2], [-9, -7, 14], [-11, 2, -5], [13, -8, 9], [13, -2, 12], [-3, -9, -15], | |
[9, 2, 15], [14, -13, 12], [15, -10, 6], [8, 9, 4], [-3, -10, 9], [-13, -1, 2], |
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
var util = require('util'); | |
// Constructor for variables. | |
function Var() { | |
this.ref = this; | |
} | |
// Constructor for compound terms. |
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
:- use_module(library(gensym)). | |
:- dynamic student/3. | |
do_stuff:- | |
gensym(student, S1), | |
gensym(student, S2), | |
assertz(student(S1, john, doe)), | |
assertz(student(S2, jane, doe)). | |
show_id_of_john :- |
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
const pickr = require('../common/pickr'); | |
// ... | |
const OrderForm = FormHoc(class extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { }; | |
this.setLoadingDateInput = this.setLoadingDateInput.bind(this); |
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
var cluster = require('cluster'); | |
var fs = require('fs'); | |
var config = require('./config.json'); | |
var assets = require('./lib/assets'); | |
// Fork child processes. | |
if (cluster.isMaster) { | |
// Run asset cleanup. |
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
:- use_module(library(http/thread_httpd)). | |
:- use_module(library(http/http_dispatch)). | |
:- use_module(library(http/http_unix_daemon)). | |
:- use_module(prolog/arouter). | |
:- route_get(hello/Name, handle_hello(Name)). | |
handle_hello(Name):- | |
format('Content-Type: text/plain; charset=UTF-8~n~n'), | |
format('Hello ~w', [Name]). |
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
const config = require('../config.json'); | |
module.exports = config; |
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
SELECT | |
`orders`.`id` AS `id`, | |
`orders`.`name` AS `order_name`, | |
`orders`.`loading_date` AS `loading_date`, | |
`orders`.`info` AS `info`, | |
`orders`.`notes` AS `notes`, | |
`orders`.`vehicle` AS `vehicle`, | |
`orders`.`price` AS `price`, | |
`orders`.`country` AS `country`, | |
`orders`.`invoice` AS `invoice`, |
NewerOlder