Skip to content

Instantly share code, notes, and snippets.

View airbugg's full-sized avatar

Eugene Lerman airbugg

View GitHub Profile
storiesOf('MyComponent', module).add('Basic Example', () => <CompStory/>)
// we need to use the old "storiesOf" syntax for now
// until support for CSF lands in Storybook for React Native
import { storiesOf } from '@storybook/react-native';
...
// CSF
export const CompStory = () => <MyComponent prop="value" />;
storiesOf('MyComponent', module).add('Basic Example', CompStory)
const { width, height } = event.nativeEvent.layout;
const length = min(width, height);
const ovalDimensionsStyle = {
width: length * .5,
height: length * .5,
borderRadius: length,
};
StyleSheet.create({
oval: {
backgroundColor: 'transparent',
borderColor: 'white',
borderWidth: 2,
transform: [{ scaleX: 1.2 }, { scaleY: 1.5 }],
},
});
{
width: 80%,
height: 60%,
borderRadius: 100%,
backgroundColor: transparent,
borderColor: white,
borderWidth: 2
}
width: '80%',
height: '60%',
borderRadius: '100%',
backgroundColor: 'transparent',
borderColor: 'white',
borderWidth: 2
width: '80%',
height: '60%',
borderRadius: '100%',
backgroundColor: 'transparent',
borderColor: 'white',
borderWidth: 2
@airbugg
airbugg / LICENSE.txt
Created March 5, 2019 05:03 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@airbugg
airbugg / INSTRUCTIONS.MD
Last active July 21, 2017 07:06
`n` - a faster `nvm`, and how to get there

Rationale

It takes over 1000ms to switch node versions (using avn) whenever we dir into a project folder. Makes carpe diem harder. Degrades my chi. Makes me wanna hurt babies.

Sold! How?

Strictly speaking, you can uninstall nvm (which I'm assuming you use)

rm -rf $NVM_DIR

and the just install n from npm:

npm i -g n
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int *char2ascii(int arr[8], char c);
void convertToBinary(int arr[8], char c);
void printBinart(int arr[8]);
int main(int argc, char **argv) {
char c;