Skip to content

Instantly share code, notes, and snippets.

View mortezaomidi's full-sized avatar
🙋
for task: tasks: coding; debugging; running; errors handling

morteza omidipoor mortezaomidi

🙋
for task: tasks: coding; debugging; running; errors handling
  • Tehran, iran
View GitHub Profile
@EtsuNDmA
EtsuNDmA / django_jupyter.md
Last active November 4, 2024 20:55
Two ways to integrate Django with Jupyter (JupyterLab)

⚠️ This gist was the first time written in 2018. It was tested with django==2.2.x. It's likely to be relevant for the newer versions of django and jupyter, but I did't check that.

2023-03-15: checked it for python == 3.11, django == 4.1.7, jupyterlab = 3.6.1, django-extensions == 3.2.1, jupyter-server <= 2.0.0

Django_jupyter

Using Django project in Jupyter or JupyterLab

Method 1 (using shell_plus)

@typebrook
typebrook / MBTilesServer.kt
Last active November 15, 2024 08:15
How to make MBTiles valid on Mapbox Android SDK #mbtiles #android #mapbox
package com.example.sample.offline
import android.util.Log
import java.io.BufferedReader
import java.io.ByteArrayOutputStream
import java.io.FileNotFoundException
import java.io.PrintStream
import java.net.ServerSocket
import java.net.Socket
import kotlin.math.pow
@WeiChiaChang
WeiChiaChang / progress.html
Created July 26, 2017 10:08
Simple Pure CSS Progress Bar
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta chatset="UTF-8" />
<title>CSS Progress Bar</title>
<style>
.wrapper {
width: 500px;
}