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
/* https://stackoverflow.com/questions/22051573/how-to-hide-image-broken-icon-using-only-css-html */ | |
.image { | |
position: relative; | |
// height: 70px; | |
width: 70px; | |
img { | |
border-radius: 50%; | |
height: 70px; |
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
/* eslint-disable */ | |
// npm install @microsoft/microsoft-graph-types --save-dev | |
import { MSGraphClientV3 } from "@microsoft/sp-http"; | |
import { escape } from "@microsoft/sp-lodash-subset"; | |
import { WebPartContext } from "@microsoft/sp-webpart-base"; | |
// businessPhones,directReports,displayName,givenName,id,imageUrl,jobTitle,mail,manager,mobilePhone,officeLocation,preferredLanguage,surname,userPrincipalName,department,ageGroup,city,companyName,country,employeeType,faxNumber,employeeHireDate,userType | |
export const graphUserProps = [ |
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
/* eslint-disable */ | |
export function toTitleCase(str: string): string { | |
// Convert underscores, hyphens, and camelCase to spaces | |
str = str | |
.replace(/_/g, " ") | |
.replace(/-/g, " ") | |
.replace(/([a-z])([A-Z])/g, "$1 $2"); | |
// Add a space before a capital letter if it's preceded by a lowercase letter |
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
Show hidden characters
{ | |
"rulesDirectory": [ | |
"tslint-microsoft-contrib" | |
], | |
"rules": { | |
"class-name": false, | |
"export-name": false, | |
"forin": false, | |
"label-position": false, | |
"member-access": true, |
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
/* eslint-disable */ | |
export const customIsEmpty = (val: any): boolean => | |
val === "" || | |
val === null || | |
// val === "null" || | |
// val === "undefined" || | |
val === undefined || | |
(typeof val === "object" && !Object.keys(val).length); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace BollywoodGame | |
{ | |
internal class Program | |
{ |
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
from string import whitespace, punctuation, digits, ascii_lowercase as letters | |
# from enchant import Dict | |
from requests import get | |
dic1 = dict() | |
dic2 = dict() | |
for i, l in enumerate(letters): | |
dic1.update({l.lower(): i}) | |
dic1.update({i: l.upper()}) | |
dic2.update({l.upper(): i}) |
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
from os import system | |
system("cls") | |
flag = True | |
while flag: | |
string = input("Enter the words: ").split() | |
system("cls") | |
if not string: |
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 pyautogui | |
import time | |
with open("asin.txt", "r") as asins: | |
time.sleep(3) | |
for line in asins.readlines(): | |
pyautogui.typewrite(line) |
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
from time import sleep | |
import openpyxl | |
from datetime import datetime | |
print("Welcome!\nWe are working...!") | |
# Get the current date and time | |
now = datetime.now() | |
worksheet_title = now.strftime("%Y-%m-%d") # for time %H-%M-%S |
NewerOlder