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
/** | |
* Wrap gulp streams into fail-safe function for better error reporting | |
* Usage: | |
* gulp.task('less', wrapPipe(function(success, error) { | |
* return gulp.src('less/*.less') | |
* .pipe(less().on('error', error)) | |
* .pipe(gulp.dest('app/css')); | |
* })); | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://npmcdn.com/@reactivex/[email protected]/dist/global/Rx.js"></script> | |
<meta name="description" content="Simple RxJs Example"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> |
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
onSelectUser(participantId:string) { | |
this.participantsService.findParticipantById(parseInt(participantId)) | |
.debug("Loading participant from backend") | |
.subscribe( | |
participant => { | |
... | |
}, | |
console.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
export class AuthApplicationService { | |
// inject all needed services | |
constructor( | |
private sessionService: SessionService, | |
private authService: AuthService | |
) {} | |
// orchestrate multi service execution | |
// note that subscription and cancelation are responsibility of the caller |
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
// Try at : https://graphql-explorer.githubapp.com/ | |
{ | |
search(query: "language:JavaScript stars:>10000", type: REPOSITORY, first: 10) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
name | |
descriptionHTML | |
stargazers { |
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
import { Injectable } from '@angular/core'; | |
import { Http } from '@angular/http'; | |
import 'rxjs/add/operator/map'; | |
import { Observable } from 'rxjs/Observable' | |
import 'rxjs/add/observable/of'; | |
import { Storage } from '@ionic/storage'; | |
export class AppSettings { | |
website_host: string = null; | |
website_port: number = null; |
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
{ | |
"$schema": "https://vega.github.io/schema/vega/v3.0.json", | |
"width": 500, | |
"height": 200, | |
"padding": 5, | |
"data": [ | |
{ | |
"name": "table", | |
"values": [ |
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
# First steps Debian based OS (10+) | |
# Debian 10.0 (Buster) (July 2019) | |
# Debian 11.0 (Bullseye) (August 2021) | |
## Install and Configure sudo | |
#su - | |
#apt install sudo -y | |
#sudo adduser serxius sudo | |
#usermod -aG sudo $USER |
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
#include <Wire.h> | |
#include <WiFi.h> | |
#include <SparkFunBME280.h> | |
#include <SparkFunCCS811.h> | |
#include "Adafruit_Si7021.h" | |
#include <MQTT.h> | |
#define CCS811_ADDR 0x5A | |
#define BMP280_ADDR 0x76 | |
#define SI2071_ADDR 0x40 |
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
"release:changelog": "npm run conventional-changelog -- -p angular-bitbucket -i CHANGELOG.md -s -r 0", | |
"report-coverage": "codecov", | |
"preversion": "git checkout master && git pull origin master --tags", | |
"version": "npm run release:changelog && git add CHANGELOG.md package.json", | |
"postversion": "rm -rf dist/", | |
"bump": "npm run bump:patch", | |
"bump:patch": "npm version patch -m 'Bump version: %s';", | |
"bump:minor": "npm version minor -m 'Bump version: %s';", | |
"bump:major": "npm version major -m 'Bump version: %s';" |