Skip to content

Instantly share code, notes, and snippets.

View EssaAlshammri's full-sized avatar

Essa Alshammri EssaAlshammri

  • Ha'il, Saudi Arabia
View GitHub Profile
@EssaAlshammri
EssaAlshammri / guide.md
Created January 27, 2024 00:04
a dockerfile and compose for sveltekit and prisma

here is the Dockerfile

FROM node:lts-alpine3.19 AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npx prisma generate
RUN npm run build
import asyncio
import httpx
from pydantic import BaseModel, EmailStr, HttpUrl
class Customer(BaseModel):
name: str
email: EmailStr
phone: str
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EssaAlshammri
EssaAlshammri / untitled0.ipynb
Created January 5, 2021 13:29
Untitled0.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Copyright 2015, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
# law or agreed to in writing, software distributed under the License is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and
# limitations under the License.
function twoSameLettersFollowEachOther(theString, firstIndex, secondIndex) {
found = false;
while (found === false) {
if (secondIndex >= theString.length) {
break;
}
if (theString[firstIndex] === theString[secondIndex]) {
found = true;
}
firstIndex++;
@EssaAlshammri
EssaAlshammri / Pin.cs
Created March 29, 2016 08:17
[Solved]Working Around Nested Prefabs pin script problem
using UnityEngine;
using System.Collections;
public class Pin : MonoBehaviour {
public float standingThreshold = 3f;
// Use this for initialization
void Start () {