Skip to content

Instantly share code, notes, and snippets.

View sanket143's full-sized avatar
🏁
GOSH! Missed the finish again

Sanket sanket143

🏁
GOSH! Missed the finish again
View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 15, 2024 20:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@pimatco
pimatco / all-angular-material-components-imports.txt
Last active December 6, 2023 15:24
All Angular Material Components Imports from app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
//Angular Material Components
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatCheckboxModule} from '@angular/material';
import {MatButtonModule} from '@angular/material';
@sanket143
sanket143 / Cricket.js
Created June 14, 2017 18:36
You could play cricket by refreshing the code and copying whatever the result show
function Cricket() {
var Maths = Math.random() * 10 ;
Maths = Math.floor(Maths);
if (Maths ==1 ) {
return "One run";
}
else if (Maths == 2) {
return "Two runs";
}
@ashokbharat
ashokbharat / Practice3.py
Created May 29, 2017 10:17
List Example
'''Take a list, say for example this one:
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
and write a program that prints out all the elements of the list that are less than 5.'''
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
new_list = []
for i in a:
if(i >= 5):