View sqlite3.bash
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
#!/bin/bash | |
# Connect to database | |
sqlite db.sqlite | |
# Get all tables names | |
.table | |
# Get all tables and their information | |
select * from sqlite_master; |
View yarn.bash
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
#!/usr/bin/env bash | |
yarn set version stable | |
yarn config set nodeLinker node-modules |
View gist:e91bbf73b8f6d48523d2bc0f1c2cc287
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
#!/bin/sh | |
settings put global settings_provider_model false | |
settings put secure sysui_qs_tiles "internet,$(settings get secure sysui_qs_tiles)" |
View mobile.yaml
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
name: Mobile | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
permissions: | |
contents: read | |
pull-requests: read |
View globals.css
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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
@layer utilities { | |
@layer components { | |
/* Hide scrollbar for Chrome, Safari and Opera */ | |
.no-scrollbar::-webkit-scrollbar { |
View main.dart
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
import 'package:flutter/material.dart'; | |
import "package:flutter/scheduler.dart"; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
View courses_group.dart
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
/* item.subtitle != null */ | |
/* ? Container( */ | |
/* padding: const EdgeInsets.symmetric( */ | |
/* vertical: 4, */ | |
/* horizontal: 8, */ | |
/* ), */ | |
/* color: Colors.grey[100], */ | |
/* child: Row( */ | |
/* children: [ */ | |
/* CircleAvatar( */ |
View main.js
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
// async function uploadCourseThumbnail(path: string) { | |
// const fileID = createID(); | |
// const file = storage.file(`${fileID}.png`); | |
// file.makePublic(); | |
// return new Promise((resolve, reject) => { | |
// const publicUrl = file.publicUrl(); |
View uploadCourse.ts
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
async function uploadCourseThumbnail(path: string) { | |
const fileID = createID(); | |
const file = storage.file(`${fileID}.png`); | |
file.makePublic(); | |
return new Promise((resolve, reject) => { | |
const publicUrl = file.publicUrl(); | |
fs.createReadStream(path) |
View nearest_neighbor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder