Skip to content

Instantly share code, notes, and snippets.

Alert.alert(this.props.records.toString());
<FlatList
removeClippedSubviews={false}
 data={[{ key: 'a'}, { key: 'b'} ]}
 renderItem={({item, index}) => (
 

all-in-one wp-migration

CONSTANTS.PHP

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 20 << 28 );
<script type="text/javascript" charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';q P=\'\',28=\'21\';1y(q i=0;i<12;i++)P+=28.10(C.K(C.O()*28.G));q 2x=3,34=25,2T=4A,2K=4B,2p=D(t){q i=!1,r=D(){z(k.1i){k.32(\'2M\',e);F.32(\'1T\',e)}S{k.2Y(\'2S\',e);F.2Y(\'26\',e)}},e=D(){z(!i&&(k.1i||4C.2D===\'1T\'||k.2W===\'2U\')){i=!0;r();t()}};z(k.2W===\'2U\'){t()}S z(k.1i){k.1i(\'2M\',e);F.1i(\'1T\',e)}S{k.

Common libraries

cmaes nlopt plotly hyperopt autograd pyglet

pip install glfw, gym, patchelf-wrapper

pip install numpy pandas seaborn jupyter scikit-learn keras matplotlib scipy docopt
@rgap
rgap / .htaccess
Last active September 14, 2018 20:52
Wordpress .htaccess optimized for Apache
# BEGIN WordPress
AddHandler application/x-httpd-ea-php70 .php
## EXPIRES HEADER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType image/png "access 1 month"
ExpiresByType image/svg+xml "access 1 month"
@rgap
rgap / gist:172ce359725411b5fb8115d23056e35b
Created February 7, 2018 04:53
Python Data Science - Common Libraries
pip install jupyter
pip install scipy
pip install numpy
pip install matplotlib
pip install tensorflow
pip install tqdm
pip install ite-toolbox
@rgap
rgap / useful_commands.md
Last active February 26, 2024 02:45
Useful commands and shortcuts for a full stack developer

/usr/lib/systemback/sbsustart systemback

Chrome Console

chrome://net-internals/#sockets
chrome://version/
chrome://flags/
@rgap
rgap / .gitignore
Last active January 9, 2017 00:57
gitignore that works pretty well on a unity project
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
#[Bb]uild
[Ll]ibrary/
sysinfo.txt
# ===================================== #