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
| version: "3.4" | |
| x-environment: &default-environment | |
| DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres | |
| SECRET_KEY: your-secret-key | |
| PORT: 8000 | |
| GLITCHTIP_DOMAIN: https://glitchtip.yourdomain.com | |
| EMAIL_URL: smtp+tls://smtp-user:[email protected]:587 | |
| DEFAULT_FROM_EMAIL: [email protected] | |
| ENABLE_OPEN_USER_REGISTRATION: "False" |
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
| { | |
| "PASTEL_GREEN": "rgb(119, 221, 119)", | |
| "PASTEL_BROWN": "rgb(131, 105, 83)", | |
| "BABY_BLUE": "rgb(137, 207, 240)", | |
| "PASTEL_TURQUOISE": "rgb(153, 197, 196)", | |
| "BLUE_GREEN_PASTEL": "rgb(154, 222, 219)", | |
| "PERSIAN_PASTEL": "rgb(170, 148, 153)", | |
| "MAGIC_MINT": "rgb(170, 240, 209)", | |
| "LIGHT_PASTEL_GREEN": "rgb(178, 251, 165)", | |
| "PASTEL_PURPLE": "rgb(179, 158, 181)", |
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 randomObjectId = () => Array(2).fill().map(() => Math.random().toString(16).slice(2)).join('') |
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 io from 'socket.io-client'; | |
| import feathers from '@feathersjs/feathers'; | |
| import socketio from '@feathersjs/socketio-client'; | |
| import auth from '@feathersjs/authentication-client'; | |
| const URL = 'http://localhost:3030'; | |
| const socket = io(URL); | |
| const feathersClient = feathers() | |
| .configure(socketio(socket)) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| hello | |
| </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 'dart:async'; | |
| Timer interval(Duration duration, func) { | |
| Timer function() { | |
| Timer timer = new Timer(duration, function); | |
| func(timer); | |
| return timer; | |
| } |
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 { set, get } = require('lodash') | |
| const tr = require('./public/locales/tr/translation.json') | |
| const en = require('./public/locales/en/translation.json') | |
| const fs = require('fs') | |
| const newEn = {} | |
| const keys = [] | |
| const walker = (obj, topKey) => { | |
| for (let [key, value] of Object.entries(obj)) { |
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
| android update sdk --no-ui --all --filter build-tools-28.0.3,android-28,extra-android-m2repository |
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 React from 'react'; | |
| import { useFormik } from 'formik'; | |
| import styled from 'styled-components'; | |
| import * as yup from 'yup'; | |
| let validationSchema = yup.object().shape({ | |
| email: yup.string().email().required(), | |
| password: yup.string().min(5).max(25).required(), | |
| }); |
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
| CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT | |
| BEGIN | |
| DECLARE _N INT; | |
| SET _N = N - 1; | |
| RETURN ( | |
| # Write your MySQL query statement below. | |
| select ( | |
| select distinct Salary from Employee order by Salary desc limit 1 offset _N | |
| ) as getNthSalary | |
| ); |
NewerOlder