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 children = []; | |
| const getChildren = el => [...el.children].map(child => { | |
| getChildren(child); | |
| child.style.transition = 'all ease 0.5s' | |
| children.push(child); | |
| }); | |
| getChildren(document.body); |
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 { Plugins } from "@capacitor/core"; | |
| const { Storage } = Plugins; | |
| export default class CapacitorStorage { | |
| static async getItem(key: string) { | |
| const { value } = (await Storage.get({ key })) || { value: null }; | |
| return value; | |
| } |
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 response = yield cps(cb => | |
| new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| resolve(true); | |
| }, 1000); | |
| }).then(data => cb(null, data)) | |
| .catch(error => cb(error)) | |
| ); |
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
| appcenter distribute release -f app-debug.apk -g Collaborators |
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 messages = app.service('/messages'); | |
| messages.on('created', (data) => { | |
| dispatch(services.messages.onCreated(data)); | |
| }) | |
| messages.on('updated', (data) => { | |
| dispatch(services.messages.onUpdated(data)); | |
| }) | |
| messages.on('patched', (data) => { | |
| dispatch(services.messages.onPatched(data)); |
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 {fetchUtils} from 'react-admin'; | |
| const httpClient = (url, options = {}) => { | |
| if (!options.headers) { | |
| options.headers = new Headers({Accept: 'application/json'}); | |
| } | |
| const token = localStorage.getItem('jwt'); | |
| options.headers.set('Authorization', `Bearer ${token.replace(/"/g, '')}`); | |
| return fetchUtils.fetchJson(url, options); | |
| }; |
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
| var form = FormApp.create('Örnek Test'); | |
| form.setIsQuiz(true); | |
| var item = form.addMultipleChoiceItem(); | |
| item.setTitle("Türkiyenin başkenti neresidir?") | |
| .setChoices([ | |
| item.createChoice("İstanbul", false), | |
| item.createChoice("Ankara", true), |
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
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install ca-certificates apt-transport-https | |
| wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - | |
| echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
| sudo apt-get update | |
| sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-opcache php7.2-curl php7.2-mbstring php7.2-mysql php7.2-zip php7.2-xml |
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 {Component} from '@angular/core'; | |
| import {NavController, Events} from 'ionic-angular'; | |
| import {HttpClient} from '@angular/common/http'; | |
| import {Observable} from 'rxjs/Rx'; | |
| import { SqliteProvider } from '../../providers/sqlite/sqlite'; | |
| @Component({ | |
| selector: 'page-home', | |
| templateUrl: 'home.html', | |
| }) |
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 { HttpClient } from '@angular/common/http'; | |
| import { Injectable } from '@angular/core'; | |
| import { SQLite, SQLiteObject } from '@ionic-native/sqlite'; | |
| /* | |
| Generated class for the SqliteProvider provider. | |
| See https://angular.io/guide/dependency-injection for more info on providers | |
| and Angular DI. | |
| */ |