Skip to content

Instantly share code, notes, and snippets.

@PotatoPope
PotatoPope / prosjekter.scss
Created January 13, 2020 09:19
Responsive eksempel
.prosjekter{
display: grid;
width: 100vw;
.project-organizer{
display: grid;
justify-self: center;
overflow-x: hidden;
justify-content: center;
margin-bottom: 5em;
@PotatoPope
PotatoPope / dir
Created June 9, 2020 18:28
I_like_tUrtles
//create directory
directory_entry = (struct dirent*) block;
directory_entry->inode = inode;
strcpy(directory_entry->name, ".");
directory_entry++;
directory_entry->inode = parent_inode;
strcpy(directory_entry->name, "..");
@PotatoPope
PotatoPope / gatsby_build.txt
Last active January 24, 2021 17:44
netlify error
6:36:30 PM: Build ready to start
6:36:31 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
6:36:31 PM: build-image tag: v3.6.1
6:36:31 PM: buildbot version: b5aa40ef41f8f8b302713d535e9a3180a3b0e301
6:36:31 PM: Building without cache
6:36:31 PM: Starting to prepare the repo for build
6:36:32 PM: No cached dependencies found. Cloning fresh repo
6:36:32 PM: git clone https://github.com/PotatoPope/portfolio
6:36:33 PM: Preparing Git Reference refs/heads/master
6:36:34 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: '' versus '/' in the Netlify UI
@PotatoPope
PotatoPope / auth-session.tsx
Last active June 5, 2024 11:29
Authsession
async function authorize(
): Promise<Token> {
const authReqConfig: AuthSession.AuthRequestConfig = {
clientId: CONST.AUT.CLIENT_ID,
codeChallengeMethod: CodeChallengeMethod.S256,
extraParams: {
realm: CONST.AUT.REALM,
acr_values: CONST.AUT.ACR,
prompt: "Login",
},