Skip to content

Instantly share code, notes, and snippets.

View vjandrei's full-sized avatar
:octocat:
Chill and Family

Andreas Koutsoukos vjandrei

:octocat:
Chill and Family
View GitHub Profile
@vjandrei
vjandrei / SassMeister-input.scss
Last active August 29, 2015 14:06
Generated by SassMeister.com.
// ----
// 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,
@vjandrei
vjandrei / SassMeister-input.scss
Created August 11, 2015 10:17
Generated by SassMeister.com.
// ----
// 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;
@vjandrei
vjandrei / SassMeister-input.scss
Last active August 29, 2015 14:27
Generated by SassMeister.com.
// ----
// 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)}) {
@vjandrei
vjandrei / SassMeister-input.scss
Last active August 29, 2015 14:27
Generated by SassMeister.com.
// ----
// 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)}) {
@vjandrei
vjandrei / index.js
Last active August 29, 2019 05:01
create folder and single file on to it
const path = require('path');
const mkdirp = require('mkdirp-promise');
const fs = require('fs-extra')
let dirs = [
"foldername1",
"foldername2",
"foldername3"
];
@vjandrei
vjandrei / kokeilu.js
Last active January 7, 2020 13:09
Koodi.info
helloWorld() => {
return 'Hi'
}
/**
* ReadSHT1xValues
*
* Read temperature and humidity values from an SHT1x-series (SHT10,
* SHT11, SHT15) sensor.
*
* Copyright 2009 Jonathan Oxer <jon@oxer.com.au>
* www.practicalarduino.com
*/
#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 "--"
@vjandrei
vjandrei / main.js
Last active November 20, 2020 14:32
Vue3 axios globalProperties
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');
---
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: []})