This file contains 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
[us := lambda u, j: [u("", lambda r: j({"msg": "Hello, world!"}))],i:=__import__,o:=i("os"),s:=i("sys"),p:=i("pymysql"),d:=i("django"),i("django.core.wsgi"),u:= d.urls.path,j:=d.http.JsonResponse,urlpatterns := us(u, j),p.install_as_MySQLdb(),d.conf.settings.configure(DEBUG=True,ALLOWED_HOSTS=["*"],ROOT_URLCONF=__name__,SECRET_KEY=d.utils.crypto.get_random_string(50),MIDDLEWARE=["django.middleware.common.CommonMiddleware"]),app:=d.core.wsgi.get_wsgi_application(),d.core.management.execute_from_command_line(s.argv)] |
This file contains 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 numberToSheetPosition = (x, y) => { | |
const xL = ["A", "B", "C", "D"] | |
return `${xL[x]}${y+1}` | |
} | |
const findCheckedItems = () => { | |
const sheet = SpreadsheetApp.getActiveSheet() | |
const sheetValues = sheet.getDataRange().getValues(); | |
const truePosition = sheetValues.reduce((acc, v, i)=> { | |
const [bool, label] = v |
This file contains 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
public class pi { | |
public static void main(String[] args) { | |
int n = 30000000; | |
int mc = 0; | |
for (int i = 0; i < n; i++) { | |
double x = Math.random(); | |
double y = Math.random(); | |
mc += (x*x + y*y < 1 )? 1 : 0; | |
} | |
double pi = (double)4*mc/n; |