This file contains hidden or 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
#!/bin/bash | |
# Exit on error | |
set -e | |
echo "🚀 Setting up Linux environment for React Native development..." | |
# Update package lists | |
echo "📦 Updating package lists..." | |
sudo apt-get update |
This file contains hidden or 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
#!/bin/bash | |
export NODE_OPTIONS="--max-old-space-size=1028" | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install 16 |
This file contains hidden or 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 "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract PooNami is ERC20 { | |
constructor() ERC20('PooNami', 'POO') { | |
_mint(msg.sender, 1e24); | |
} | |
} | |
contract AirGrap { |
This file contains hidden or 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 "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract PooNami is ERC20 { | |
constructor() ERC20('PooNami', 'POO') { | |
_mint(msg.sender, 1e24); | |
} | |
} | |
interface IMintable { |
This file contains hidden or 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
<template> | |
<div class="hello">Hello {{who}} World</div> | |
</template> | |
<script> | |
module.exports = { | |
props: { | |
who: String, | |
}, | |
}; |
This file contains hidden or 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 { isPlatformBrowser } from '@angular/common'; | |
import { Directive, ElementRef, Inject, Input, OnDestroy, OnInit, PLATFORM_ID } from '@angular/core'; | |
import { MediaObserver } from '@angular/flex-layout'; | |
import { BehaviorSubject, combineLatest, Subscription } from 'rxjs'; | |
@Directive({ | |
selector: '[fxIf],' + ['xs', 'md', 'lg', 'xl', 'lt-sm', 'lt-md', 'lt-lg', | |
'lt-xl', 'gt-xs', 'gt-sm', 'gt-md', 'gt-lg'].map(key => `[fxIf.${key}]`).join(','), | |
}) | |
export class FxIfDirective implements OnInit, OnDestroy { |
This file contains hidden or 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
interface ScrollSectionConfig { | |
height : number; | |
speed : number; | |
} | |
interface Vector { | |
x : number; | |
y : number; | |
} |
This file contains hidden or 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
#!/bin/bash | |
for file in * | |
do | |
echo "Converting: '$file'" | |
cwebp -q 80 "$file" -o "webp/$file.webp" > /dev/null 2>&1 | |
done | |
echo "Complete!" |
This file contains hidden or 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
#!/bin/bash | |
{ | |
# BRANCH="feature/AGS-62-agtrader-digital-ad-changes-for-d" | |
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>&1) | |
} || { | |
echo "Is not a git repository..." | |
exit 1; | |
} |
This file contains hidden or 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
#!/bin/bash | |
command=$(basename $0) | |
usage() { printf "Usage: ${BLUE}$command${NC} ${RED}[search-term]${NC} ${GREEN}[-f]${NC}\n" 1>&2; exit 1; } | |
CODE=$1 | |
TMP=~/.xc | |
TIME_CHANGE=3600 | |
RED='\033[0;33m' |
NewerOlder