What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-31 10:46:14
create global styles in styled components
import { createGlobalStyle } from 'styled-components' const GlobalStyle = createGlobalStyle` body { color: ${props => (props.whiteColor ? 'white' : 'black')}; } ` // later in your app <React.Fragment> <GlobalStyle whiteColor />... Add solution -
Other 2022-01-31 09:50:45
how to write custom boot sector to disk
Writing an El-Torito Boot Sector At the start of your El-Torito boot sector, you simply need to set segment registers to known values (as usual) and use the BIOS to load files from the CD as per ISO 9660. As with a normal floppy or hard disk, DL contains ... Add solution -
C++ 2022-01-31 09:41:28
c++ smart pointer 2d array
#include <iostream> #include <memory> using namespace std; int main(){ //this just builds a 2D array pi that looks like //0 1 2 3 4 //5 6 7 8 9 //10 11 12 13 //... 24 int** pi=new int*[5]; //this counter is augmented by 5 in every... Add solution -
Other 2022-01-30 23:05:53
render world space UI infront of everything unity
Shader "UI/Default_OverlayNoZTest" { Properties { [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} _Color("Tint", Color) = (1,1,1,1) _StencilComp("Stencil Comparison... Add solution -
Python 2022-01-30 21:06:30
gamestop
GME to the moon !!! lets fuck Wall Street r/WallStreetBets Add solution -
C++ 2022-01-27 18:55:18
Creating segment for sqrt decomposition
int segment[10000]; int preprocess(int input[], int n) { int current_segment = -1; int segment_size = sqrt(n); for (int i=0; i<n; i++) { &... Add solution -
Java 2022-01-26 03:00:23
use view binding in fragment
private FragmentJavaPracticeBinding binding; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { binding = FragmentJavaPracticeBinding.inflat... Add solution
Best helpers
Ranking is empty