- /var/www/ | jossa julkiset tiedot http palvelulle sijaitsee
- /etc/nginx/sites-available/ | jossa Nginx sivujen konfurikaatio dokumentaatiot sijaitsee
├── domain1.com
│ └── public_html
├── domain2.com
│ └── public_html
# To get the categories https://github.com/FortAwesome/Font-Awesome/blob/master/metadata/categories.yml | |
# Convert yml to json | |
# Download icons from https://github.com/FortAwesome/Font-Awesome/tree/master/svgs or from Font-Awesome website | |
# Run .py code | |
import json | |
import os | |
import shutil |
--- | |
const lajiteltuObjekti = food.reduce((foodList, currentItem) => { | |
if (currentItem.main === 'Pääruoka') { | |
foodList.mains.push(currentItem); | |
} else if (currentItem.main === 'Alkuruoka') { | |
foodList.starters.push(currentItem); | |
} | |
return foodList; | |
}, {mains: [], starters: []}) |
import { createApp } from 'vue'; | |
import axios from 'axios'; | |
import MyApp from './App.vue'; | |
const app = createApp(MyApp); | |
app.config.globalProperties.axios = axios; | |
app.mount('#app'); |
#include "FirebaseESP8266.h" | |
#include <ESP8266WiFi.h> | |
#include <SHT1x.h> | |
// Define your wifi data | |
#define FIREBASE_HOST "example.firebaseio.com" | |
#define FIREBASE_AUTH "--" | |
#define WIFI_SSID "--" | |
#define WIFI_PASSWORD "--" |
/** | |
* ReadSHT1xValues | |
* | |
* Read temperature and humidity values from an SHT1x-series (SHT10, | |
* SHT11, SHT15) sensor. | |
* | |
* Copyright 2009 Jonathan Oxer <[email protected]> | |
* www.practicalarduino.com | |
*/ | |
helloWorld() => { | |
return 'Hi' | |
} |
const path = require('path'); | |
const mkdirp = require('mkdirp-promise'); | |
const fs = require('fs-extra') | |
let dirs = [ | |
"foldername1", | |
"foldername2", | |
"foldername3" | |
]; |
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
//MediaQuery | |
$breakpoints: (mobile: 767px, tablet: 992px, desktop: 1200px); | |
@mixin respond-to($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
@media (min-width: #{map-get($breakpoints, $breakpoint)}) { |
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
//MediaQuery | |
$breakpoints: (mobile: 767px, tablet: 992px, desktop: 1200px); | |
@mixin respond-to($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
@media (min-width: #{map-get($breakpoints, $breakpoint)}) { |