Skip to content

Instantly share code, notes, and snippets.

View purplecandy's full-sized avatar

Nadeem Siddique purplecandy

View GitHub Profile
@purplecandy
purplecandy / component-mount-logs.md
Last active February 15, 2024 04:52
Sprinto Notes

Before Idle Callback

infosecRoles.js:236 Loading -  true
infosecRoles.js:237 QueryData -  undefined
BasePageContext.js:32 Fetching base page data
ga.js:24  ------ css injection ------
ga.js:25 {css_injector: {…}}
ga.js:26  ------ css injection ------
infosecRoles.js:236 Loading -  true
@purplecandy
purplecandy / notes.md
Last active January 17, 2024 06:50
Demo performance mom
  1. Evidence section - audits page
  2. Workflow checks
  3. Restricting demo accounts to ownerships

Demo workflow path

  • Entire navigation re-rendering
  • p
@purplecandy
purplecandy / esm-package.md
Created January 3, 2022 14:12 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package linked to from here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
Xcode build done. 444.6s
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **
Xcode's output:
/Users/flutter/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webview_media-0.1.2/ios/Classes/FlutterWebView.m:407:20: warning: 'loadData:MIMEType:characterEncodingName:baseURL:' is only available on iOS 9.0 or newer [-Wunguarded-availability]
@purplecandy
purplecandy / asynco.dart
Created April 7, 2020 09:51
Dart async/await operation
void main(){
results();
}
void results()async{
await printNumber("A",100);
printNumber("B",200);
}
Future<void> printNumber(var a,int delay)async{
@purplecandy
purplecandy / MatrixDemo.java
Created February 11, 2020 11:30
practical 6B
import java.io.*;
import java.util.Scanner;
class MatrixDemo {
final int r,c;
int i=0,j=0;
int ip1[][];
int ip2[][];
int op[][];
@purplecandy
purplecandy / lift.c
Created February 6, 2020 17:52
ES lift practical code
#include<reg51.h>
int floor[] = {0x80,0x40,0x20,0x10,0x08,0x04,0x02};
unsigned int curr = 0;
sbit gd = P1^3;
sbit f = P1^2;
sbit s = P1^1;
sbit t = P1^0;
void delay()
@purplecandy
purplecandy / solution.py
Created January 28, 2020 13:51
LeetCode: Add Two Numbers
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
# traversing both nodes together and adding the last digit if carry is generated
pnode = result = ListNode(None)
@purplecandy
purplecandy / index.html
Last active May 10, 2019 15:35
Input test
<!-- Copyright 2015 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Listening to input</h2>
<br>
<p>Enter text to echo:</p>