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 { createContext, Dispatch, ReactNode, useContext, useReducer } from "react"; | |
export interface GlobalContextProps { | |
loggedIn: boolean; | |
background: boolean; | |
} | |
export interface GlobalContextAction { | |
type: string; | |
value: any; |
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
""" | |
slug.py | |
Contains operations and functions integral to slug processing and identifier extraction | |
""" | |
from math import ceil | |
from slugify import slugify | |
from typing import Optional |
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
In [1]: def bitwise_or(): | |
...: x = 0 | |
...: for i in range(1, 32): | |
...: x |= 1 << i | |
...: return x | |
...: | |
In [2]: def addition(): | |
...: x = 0 | |
...: for i in range(1, 32): |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
struct AddressedSingleBlockWrite { | |
uint8_t Flag; | |
uint8_t Command; | |
uint8_t Address[8]; | |
uint8_t Block; |
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
// Hello world! Cplayground is an online sandbox that makes it easy to try out | |
// code. | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
union magic { | |
uint8_t buf[4]; | |
uint32_t magic2; |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau | |
Africa/Blantyre |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
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
library(beakr) | |
# Create a new beakr server | |
newBeakr() %>% | |
# Respond to GET requests at the "/hi" route | |
httpGET(path = "/hi", function(req, res, err) { | |
print("Hello, World!") | |
}) %>% | |
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
<SpeakerMappings> | |
<Mapping count="11686"> | |
<Source>Michael</Source> | |
<Destination>Michael</Destination> | |
</Mapping> | |
<Mapping count="7335"> | |
<Source>Dwight</Source> | |
<Destination>Dwight</Destination> | |
</Mapping> | |
<Mapping count="6632"> |
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
{ | |
"subaru": [ | |
{ | |
"id": "yyTJTUNgsVU", | |
"title": "The Subaru Sambar Is a Cute, Surprisingly Practical Tiny Van" | |
}, | |
{ | |
"id": "vCOYkYwEXPE", | |
"title": "The 2023 Subaru Solterra Is an Electric Crossover for Adventures" | |
}, |