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 android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.InetSocketAddress; |
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 android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.InetSocketAddress; |
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 { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; | |
import { setup } from '@nuxt/test-utils-edge'; | |
import { PrismaClient } from '@prisma/client'; | |
// import { useAddJob } from '../composables/getdata.js'; | |
/* this is useAddJob from getdata.js */ | |
const prisma = new PrismaClient(); | |
/* a simple function to be tested */ |
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 tailwindConfig from '~/tailwind.config'; | |
import resolveConfig from 'tailwindcss/resolveConfig'; | |
const { theme: { screens } } = resolveConfig(tailwindConfig); | |
/* returns the breakpoint in form of 'md', 'sm' ..etc */ | |
const getActiveBreakpoint = () => { | |
/* Sort the breakpoints based on their dimensions in descending order */ | |
const sorted = Object.entries(screens).sort((x, y) => parseInt(y[1]) - parseInt(x[1])); |
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
#/usr/bin/python | |
# http://exploreflask.com/en/latest/views.html | |
# https://stackoverflow.com/questions/51691730/flask-middleware-for-specific-route | |
# https://dev.to/rhymes/logging-flask-requests-with-colors-and-structure--7g1 | |
import logging | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask, request, jsonify | |
from time import strftime |
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
<script lang="js"> | |
import { USlideover } from '#components'; | |
/* Extend USlideover so as to emit signal when the slider is opened */ | |
export default defineComponent({ | |
emits: ['open', 'update:modelValue'], | |
extends: USlideover, | |
props: ['modelValue'], | |
setup(props, { emit, slots }) { | |
const { modelValue } = toRefs(props); |