Skip to content

Instantly share code, notes, and snippets.

View alandsilva26's full-sized avatar
lemon

Alan Dsilva alandsilva26

lemon
View GitHub Profile
@alandsilva26
alandsilva26 / parallax.js
Created February 23, 2022 02:52
WebDev: Parallax
$(document).ready(function () {
window.addEventListener("scroll", function () {
let offset = window.pageYOffset;
console.log(`${offset * 1}px`);
$("#home-header--bg-image").css(
"background-position-y",
`${offset * 0.2}px`
);
});
});
@alandsilva26
alandsilva26 / php-folder-structure.md
Created October 30, 2020 05:32
File and Folder Structure for php projects using composer.

PHP Project directory using Composer

project-directory/
├───.git/                   # Git configuration and source directory
├───assets/                 # Uncompiled raw CSS, JavaScript , images, etc.
│ ├───css/
│ ├───images/
│ ├───js/
│ └───sass/  
├───bin/                    # Command line scripts
CREATE TABLE room (
room_id NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY,
room_no NUMBER NOT NULL,
capacity NUMBER NOT NULL,
status NUMBER NOT NULL,
price FLOAT NOT NULL,
amenities VARCHAR2(526),
room_type VARCHAR2(526) NOT NULL,
floor_no NUMBER NOT NULL,
room_view VARCHAR2(526),
@alandsilva26
alandsilva26 / Microsoft.PowerShell_profile.ps1
Last active August 11, 2021 10:07
Windows Terminal Configuration file (paste raw)
oh-my-posh --init --shell pwsh --config "C:\Users\aland\scoop\apps\oh-my-posh\current\themes\mytheme.omp.json" | Invoke-Expression
@alandsilva26
alandsilva26 / hometown_21.html
Last active September 2, 2020 18:40
WDL Assignment 1 - Basic hometown page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vasai</title>
</head>
<style>
* {
line-height: 1.4;
List imageLinks = ["http://www.sfit.ac.in/images/recruiters/1.png",
"http://www.sfit.ac.in/images/recruiters/2.png",
"http://www.sfit.ac.in/images/recruiters/3.png",
"http://www.sfit.ac.in/images/recruiters/4.png",
"http://www.sfit.ac.in/images/recruiters/5.png",
"http://www.sfit.ac.in/images/recruiters/6.png",
"http://www.sfit.ac.in/images/recruiters/7.png",
"http://www.sfit.ac.in/images/recruiters/8.png",
"http://www.sfit.ac.in/images/recruiters/9.png",
"http://www.sfit.ac.in/images/recruiters/10.png",
@alandsilva26
alandsilva26 / expansion_panel_part.dart
Created May 3, 2020 06:49
Code for expansion panel
return ExpansionPanelList(
expansionCallback: (int index, bool isExpanded) {
setState(() {
isExpanded1 = !isExpanded;
});
},
children: gridTiles.map<ExpansionPanel>((tile) {
return ExpansionPanel(
body: Text("test body"),
headerBuilder: (BuildContext context, bool isExpanded) {
return Expanded(
child: ListView(
children: gridTiles
.map(
(tile) => ListTile(
contentPadding: EdgeInsets.all(10),
leading: ClipRRect(
borderRadius: BorderRadius.circular(4),
child: Container(
padding: EdgeInsets.all(7),
@alandsilva26
alandsilva26 / GCC.md
Last active October 23, 2025 10:05
Instructions for installing GCC Compiler on Windows

Installation

To check if GCC already exists by running the following command in your command promt gcc -v

  • Install MSYS2 MSYS2.

  • This will install the linux shell on your Machine.

  • Update packages and mirrors using pacman -Syu.

  • You may have to restart

  • To install GCC copy the following code and paste in the shell Ctrl + v might not work

  • Note: Keep pressing ENTER to select the default installation instructions.

@alandsilva26
alandsilva26 / ArchInstall.md
Last active April 27, 2020 11:38
Installation instructions Arch Linux for personal use. EACH COMMAND MUST BE RUN MANUALLY

Arch Installation guide

❗❗ Note: Run maually

After booting into arch iso

Check if your computer uses BIOS or UEFI

NOTE: The following script is for BIOS

ls /sys/firmware/efi/efivars

Connect to wireless