docker-compose exec -T <mongodb_service_name> mongodump --archive --gzip --db <mongodb_database> > dump.gz
docker-compose exec -T mongorestore --archive --gzip < dump.gz
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Profiling; | |
public class KdTree<T> : IEnumerable<T>, IEnumerable where T : Component | |
{ | |
protected KdNode _root; | |
protected KdNode _last; |
<div id="app" v-cloak> | |
<div class="row"> | |
<div class="large-12 columns"> | |
<h1>{{ quiz.title }}</h1> | |
<div class="callout"> | |
<div v-for="(question, index) in quiz.questions"> | |
<!-- Hide all questions, show only the one with index === to current question index --> |
/** | |
* Resize the image to a new width and height using nearest neighbor algorithm. | |
* To make the image scale proportionally, | |
* use 0 as the value for the wide or high parameters. | |
* For instance, to make the width of an image 150 pixels, | |
* and change the height using the same proportion, use resize(150, 0). | |
* Otherwise same usage as the regular resize(). | |
* | |
* Note: Disproportionate resizing squashes "pixels" from squares to rectangles. | |
* This works about 10 times slower than the regular resize. |
/** | |
* Resize the image to a new width and height using nearest neigbor algorithm. To make the image scale | |
* proportionally, use 0 as the value for the wide or high parameter. | |
* For instance, to make the width of an image 150 pixels, and change | |
* the height using the same proportion, use resize(150, 0). | |
* Otherwise same usage as the regular resize(). | |
* | |
* Note: Disproportionate resizing squashes the "pixels" from squares to rectangles. | |
* This works about 10 times slower than the regular resize. Any suggestions for performance increase are welcome. | |
*/ |
(function () { | |
'use strict'; | |
var defaults = { | |
editArtGroup: true | |
}; | |
var EditArtGroup = function (element) { |
void setup() { | |
Serial.begin(9600); // initialize serial communications @ 9600 | |
} | |
void loop() { | |
int potentiometer = analogRead(A0); // read the input pin | |
int mappedPot = map(potentiometer, 0, 1023, 0, 255); // remap the pot value to fit in 1 byte | |
//Serial.write(mappedPot); // write mappedPot value to the serial port (1 byte) | |
Serial.println(potentiometer); // *or* use println to print out raw potentiometer value with newline as data separator | |
delay(1); // slight delay to stabilize the ADC |
using UnityEngine; | |
using Windows.Kinect; | |
//fileIO | |
using System.IO; | |
public class ColoredParticle2 : MonoBehaviour { | |
public GameObject MultiSourceManager; | |
public Color color = Color.green; |
<?php | |
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME'); | |
define('MAILGUN_KEY', 'KEY'); | |
function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
$array_data = array( | |
'from'=> $mailfromname .'<'.$mailfrom.'>', | |
'to'=>$toname.'<'.$to.'>', | |
'subject'=>$subject, | |
'html'=>$html, |
$('body').on('click', '.ajax-modal', function() { | |
$('.ui.modal') | |
.modal({ | |
onShow: function(callback) { | |
callback = $.isFunction(callback) ? callback : function(){}; | |
var $content = $(this).find('.content'); | |
$.get("contentData.php", function(data) { | |
$content.html(data); | |
}); | |
} |