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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
dot-wave dot { | |
display: inline-block; | |
width: 12px; |
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 'package:meghshala_app_flutter/core/dynamodb.dart'; | |
import 'package:meghshala_app_flutter/core/lesson_store.dart'; | |
// fetch lessons from database | |
Set<Lesson> lessons = await DynamoDB.listLessons(); | |
// or, fetch from local storage | |
Set<Lesson> lessons = await LessonStore.getLessons(); | |
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.os.AsyncTask | |
import io.flutter.plugin.common.MethodCall | |
import io.flutter.plugin.common.MethodChannel | |
import io.flutter.plugin.common.MethodChannel.Result | |
import java.lang.reflect.Method | |
class DoAsync(val fn: () -> Unit) : AsyncTask<Void, Void, Void>() { | |
init { | |
execute() |
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
if status --is-interactive | |
# | |
# pyenv | |
# | |
. (pyenv init -|psub) | |
# | |
# virtualfish | |
# |
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
from rest_framework.parsers import FileUploadParser, MultiPartParser | |
from rest_framework.views import APIView | |
from rest_framework.response import Response | |
class FileUploadView(APIView): | |
parser_classes = (FileUploadParser, MultiPartParser) | |
def put(self, request, filename, format=None): | |
with open("uploaded_file", "wb") as f: | |
f.write(request.data['file'].read()) |
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 select | |
import sys | |
MICROPYTHON = sys.implementation.name == "micropython" | |
BCAST_HOST = "255.255.255.255" | |
LOCAL_HOST = "0.0.0.0" | |
LOG_PREFIX = "[μNetwork] " |
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
[ { | |
"questionId" : 1, | |
"answerMapping" : { | |
"Frustrated" : "I Recognise Very Few Students. ", | |
"Neutral" : "", | |
"Happy" : " I Recognise All Students By Name.", | |
"Sad" : "I Recognise About Half The Students By Name. ", | |
"Fine" : "I Recognise Over 75% Of Students By Name. " | |
}, | |
"valueRegional" : "Students are important to me.", |
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
Preparing build | |
Building image: micropython:latest using unique hash: 00a72775b12a91330b48299734ad10ebdff22f43 | |
Sending build context to Docker daemon 6.144kB | |
Step 1/41 : FROM ubuntu:18.04 | |
18.04: Pulling from library/ubuntu | |
Digest: sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90 | |
Status: Image is up to date for ubuntu:18.04 | |
---> a2a15febcdf3 |
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
Running freestyle step: qemu_arm | |
Pulling image devxpy/micropython:sha256:0c46420a2d88fe3f11b058455def82f97672cdde6b11411ce7dda1fda0abc9eb | |
Digest: sha256:0c46420a2d88fe3f11b058455def82f97672cdde6b11411ce7dda1fda0abc9eb | |
Status: Image is up to date for r.cfcr.io/devxpy/micropython@sha256:0c46420a2d88fe3f11b058455def82f97672cdde6b11411ce7dda1fda0abc9eb | |
Finished pulling r.cfcr.io/devxpy/micropython@sha256:0c46420a2d88fe3f11b058455def82f97672cdde6b11411ce7dda1fda0abc9eb from internal registry | |
------------------------------ | |
[32mExecuting command:[39m . .codefresh/setup_build_step.sh | |
+ REPO_URL=https://github.com/devxpy/micropython.git | |
+ REPO_DIR=/codefresh/volume/qemu_arm | |
+ [ ! -d /codefresh/volume/qemu_arm ] |
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
Running freestyle step: qemu_arm | |
Pulling image devxpy/micropython:sha256:33a88cefb02f7663f69110b498ab101f6e4ace81c516f3a1b794bcf2ceb61b9d | |
Digest: sha256:33a88cefb02f7663f69110b498ab101f6e4ace81c516f3a1b794bcf2ceb61b9d | |
Status: Image is up to date for r.cfcr.io/devxpy/micropython@sha256:33a88cefb02f7663f69110b498ab101f6e4ace81c516f3a1b794bcf2ceb61b9d | |
Finished pulling r.cfcr.io/devxpy/micropython@sha256:33a88cefb02f7663f69110b498ab101f6e4ace81c516f3a1b794bcf2ceb61b9d from internal registry | |
------------------------------ | |
[32mExecuting command:[39m . .codefresh/setup_build_step.sh | |
+ REPO_URL=https://github.com/devxpy/micropython.git | |
+ REPO_DIR=/codefresh/volume/qemu_arm | |
+ [ ! -d /codefresh/volume/qemu_arm ] |