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
console.log("Running sql blob exporter"); | |
var mysql = require('mysql'); | |
fs = require('fs'); | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', | |
password : '', | |
database :'arto' | |
}); |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<link rel="import" href="../chart-js/chart-js.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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 LOGGING | |
// This #include statement was automatically added by the Spark IDE. | |
#include "HttpClient/HttpClient.h" | |
// This #include statement was automatically added by the Spark IDE. | |
#include "LiquidCrystal_I2C_Spark/LiquidCrystal_I2C_Spark.h" | |
/** include library */ | |
#include "application.h" |
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
<html> | |
<head> | |
<title>Tree.js demo earth</title> | |
</head> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/84/three.min.js"></script> | |
<script type="text/javascript" src="http://threejs.org/examples/js/controls/TrackballControls.js"></script> | |
<body> |
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
package sk.octopuss.test; | |
import junit.framework.Assert; | |
import org.apache.commons.validator.routines.CodeValidator; | |
import org.apache.commons.validator.routines.CreditCardValidator; | |
import org.apache.commons.validator.routines.RegexValidator; | |
import org.apache.commons.validator.routines.checkdigit.LuhnCheckDigit; | |
import org.junit.Test; | |
/** |
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
public class LocalizedObject<T> { | |
private T object; | |
private Map<LanguageCode, List<Localization>> localizations; | |
public T getObject() { | |
return object; | |
} | |
public void setOobject(T object) { | |
this.object = object; | |
} |
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 set_delay = 1000; | |
var ticker = 0; | |
var limit = 10; | |
var status = false; | |
callout = function (callback) { | |
$.ajax({ | |
url: "http://private-anon-ca0f912b9-mcrdataforpublic.apiary-mock.com/" | |
}) | |
.done(function (response) { | |
console.log("requested"); |
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 | |
class Cell { | |
public $x; | |
public $y; | |
public $surroundings = []; | |
public function __construct($x, $y) |
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
async function greet(who) { | |
try { | |
console.log("(2) Greet is beeing composed, and printed second because no await was present yet") | |
var greeting = await composeGreet(who); | |
console.log ("(5) Greet composed and promise fullfilled"); | |
console.log("(6) " + greeting); | |
} catch(error) { | |
console.error(error); | |
} | |
} |
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
console.log("First"); | |
var p = new Promise((ok, reject) => { | |
try { | |
console.log("Second"); | |
ok(); | |
} catch (err) { | |
reject(); | |
} | |
}); | |
p.then(() => {console.log("Fourth")}) |
OlderNewer