Discover gists
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 {Dimensions, FlatList, View} from 'react-native'; | |
const screenWidth = Dimensions.get('window').width; | |
const numColumns = 2; | |
const gap = 5; | |
const availableSpace = screenWidth - (numColumns - 1) * gap; | |
const itemSize = availableSpace / numColumns; | |
const renderItem = ({item}) => { |
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
#!/bin/bash | |
LogFile=/var/log/cache_backup.log | |
BackupDir=/mnt/disk6/cache_backup | |
echo `date` "Starting cache drive backup to " $BackupDir >> $LogFile | |
#Stop plugin services located in /etc/rc.d/ | |
# enter in plugins to stop here, if any | |
# /etc/rc.d/rc.plexmediaserver stop >> $LogFile |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
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
<?php | |
class Container | |
{ | |
private array $registry = []; | |
public function set(string $name, Closure $value): void | |
{ | |
$this->registry[$name] = $value; | |
} |
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
<div class="d-flex flex-column justify-content-center w-100 h-100"> | |
<div class="d-flex flex-column justify-content-center align-items-center"> | |
<h1 class="fw-light text-white m-0">Pure CSS Gradient Background Animation</h1> | |
<div class="btn-group my-5"> | |
<a href="https://codepen-api-export-production.s3.us-west-2.amazonaws.com/zip/PEN/pyBNzX/1578778289271/pure-css-gradient-background-animation.zip" class="btn btn-outline-light" aria-current="page"><i class="fas fa-file-download me-2"></i> SOURCE CODE</a> | |
<a href="https://codepen.io/P1N2O/full/pyBNzX" class="btn btn-outline-light">FULL SCREEN <i class="fas fa-expand ms-2"></i></a> | |
</div> | |
<a href="https://manuel.pinto.dev" class="text-decoration-none"> | |
<h5 class="fw-light text-white m-0">— Pen by Manuel Pinto —</h5> |
https://github.com/phpenv/phpenv
brew install \
autoconf \
bzip2 \
NewerOlder