This file contains hidden or 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
// ---- | |
// Esimerkki kuinka käyttää Sass Mixineitä null data tyypillä. | |
// ---- | |
// Luodaan mixin nimeltää display, jossa on haluttuja properteja kuten | |
// Display, Padding, Margin-Left, Margin-Right. Jotta halutut propertit toimii @includessa | |
// tulee niiden olla data pyytiltään null. Kuten esimerkissä. | |
@mixin display ( | |
$disp, | |
$padding: null, |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$breakpoints: (mobile: 767px, tablet: 992px, desktop: 1200px); | |
@mixin respond-to($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
@media (min-width: #{map-get($breakpoints, $breakpoint)}) { | |
@content; |
This file contains hidden or 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
// ---- | |
// 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)}) { |
This file contains hidden or 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
// ---- | |
// 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)}) { |
This file contains hidden or 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 path = require('path'); | |
const mkdirp = require('mkdirp-promise'); | |
const fs = require('fs-extra') | |
let dirs = [ | |
"foldername1", | |
"foldername2", | |
"foldername3" | |
]; |
This file contains hidden or 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
helloWorld() => { | |
return 'Hi' | |
} |
This file contains hidden or 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
/** | |
* ReadSHT1xValues | |
* | |
* Read temperature and humidity values from an SHT1x-series (SHT10, | |
* SHT11, SHT15) sensor. | |
* | |
* Copyright 2009 Jonathan Oxer <[email protected]> | |
* www.practicalarduino.com | |
*/ | |
This file contains hidden or 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
#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 "--" |
This file contains hidden or 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
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'); |
This file contains hidden or 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 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: []}) |
OlderNewer