Skip to content

Instantly share code, notes, and snippets.

View palcodes's full-sized avatar
📖
Learning

Aayush Pal palcodes

📖
Learning
View GitHub Profile
<html lang="en">
<head>
<title>Edit Blob</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script type="module" src="/js/bottomsheet_controller.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="../style.css">
<script
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ Name }}</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script type="module" src="/js/bottomsheet_controller.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<div class="grid" data-reveal-away data-controller="reveal">
<div class="right-0" style="background-color: red;">
<button data-action="click->reveal#toggle" class="text-white px-4 w-auto h-10 bg-gray-900 rounded-full hover:bg-gray-800 active:shadow-2xl mouse shadow-2xl
transition ease-in duration-200 focus:outline-none">
<span>Add</span>
</button>
</div>
<div hidden data-reveal data-transition class="fixed bottom-0 shadow-xl bg-gray-100 p-5 rounded-t-lg">
<p class="font-semibold ml-2">Add a new Blob about you</p>
[ScriptBlock]$Prompt = {
$realLASTEXITCODE = $global:LASTEXITCODE
if ($realLASTEXITCODE -isnot [int]) {
$realLASTEXITCODE = 0
}
$startInfo = New-Object System.Diagnostics.ProcessStartInfo
$startInfo.FileName = "C:\tools\oh-my-posh.exe"
$config = $global:PoshSettings.Theme
$cleanPWD = $PWD.ToString().TrimEnd("\")
$startInfo.Arguments = "-config=""C:\Users\{username}\Documents\paradox.json"" -error=$realLASTEXITCODE -pwd=""$cleanPWD"""
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": ["dom", "es6", "es2017", "esnext.asynciterable"],
"sourceMap": true,
"outDir": "./dist",
"moduleResolution": "node",
"esModuleInterop": true,
"removeComments": true,
main() {
int size = 10;
var i, j;
List<List<int>> mat = new List<List<int>>(size);
for (i = 0; i < size; i++) {
List<int> list = new List<int>(size);
for (j = 0; j < size; j++) {
list[j] = j;
}
mat[i] = list;
@palcodes
palcodes / logtuesday.txt
Created February 11, 2020 13:14
logs on macOS build tuesday - aatikas office
flutter: crossAxisAlignment: center
flutter: textDirection: ltr
flutter: verticalDirection: down
flutter: ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: RangeError (index): Invalid value: Only valid value is 0: 1
flutter: firebase_crashlytics: Error reported to Crashlytics.
[C3.1 29DCD63A-E2B9-41CA-821E-81AC26C6A722 10.28.22.3:58570<->216.58.196.74:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 240.425s, DNS @0.000s took 0.009s, TCP @0.011s took 0.006s, TLS took 0.081s
@palcodes
palcodes / calculateAge.dart
Last active January 22, 2020 14:26
Function to use substring & calculate ageRange
calculateAgeRange() async {
FirebaseAuth.instance.currentUser().then((user) async {
final snapShot =
await Firestore.instance.collection('User').document(user.uid).get();
User userSnapshot = User.fromSnapshot(snapShot);
if (userSnapshot.AgeRange == '') {
if (userSnapshot.DateOfBirth == '') {
print('DATE OF BIRTH IS NULL');
} else {
@palcodes
palcodes / logs.docx
Created January 18, 2020 11:25
Build on iOS fail
Xcode's output:
/Users/abhinav/Downloads/Vikram/partyherdCode/partyherd/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: warning: 'sqlite3_wal_checkpoint_v2' is only
available on iOS 5.0 or newer [-Wunguarded-availability]
int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);
^~~~~~~~~~~~~~~~~~~~~~~~~
In module 'SQLite3' imported from /Users/abhinav/Downloads/Vikram/partyherdCode/partyherd/ios/Pods/FMDB/src/fmdb/FMDatabase.m:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/usr/include/sqlite3.h:8428:16: note:
'sqlite3_wal_checkpoint_v2' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
SQLITE_API int sqlite3_wal_checkpoint_v2(
@palcodes
palcodes / interests.dart
Last active January 11, 2020 15:46
Code for live updating listView
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class Interests extends StatefulWidget {
@override
_InterestsState createState() => _InterestsState();
}
class _InterestsState extends State<Interests> {
List<String> interests = new List();