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
:- 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
:- 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`, |
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
!define setup "LCB-installer.exe" | |
!define company "Infdot" | |
!define prodname "LCB" | |
!define exec "LCB.exe" | |
!define srcdir "dist\LCB-win32-ia32" | |
!define regkey "Software\${company}\${prodname}" | |
!define uninstkey "Software\Microsoft\Windows\CurrentVersion\Uninstall\${prodname}" | |
!define startmenu "$SMPROGRAMS" |
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
{ | |
"version":4, | |
"id":254, | |
"name":"Osto 6", | |
"length":"13.5", | |
"height":"2.64", | |
"sideWidth":800, | |
"sideHeight":340, | |
"clients":[ | |
{ |
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
class SomeForm extends React.Component { | |
// constructor, render() etc are form-specific | |
async submit(e) { | |
e.preventDefault(); | |
const errors = validate(this.state); | |
if (errors.hasError()) { | |
this.setState({ errors: errors.extract() }); | |
return; |
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
// Executes the given function inside | |
// a transaction. | |
exports.transaction = async (fn) => { | |
assert.equal(typeof fn, 'function'); | |
// Aquire a connection. | |
const connection = await aquire(pool); | |
debug('Aquired a connection.'); | |
try { | |
// Begin the transaction. |
NewerOlder