Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Octobarin

Barin Britva barinbritva

:octocat:
Octobarin
View GitHub Profile
@zkat
zkat / index.js
Last active May 8, 2022
npx is cool
View index.js
#!/usr/bin/env node
console.log('yay gist')
@JArmando
JArmando / ReactAnimations.md
Last active Aug 31, 2017
React Animations using animate.css
View ReactAnimations.md

ReactAnimations with animate.css:

Say you want to animate a list of items. Wrap these children components in a <ReactCssTransitionGroup> and set the animation settings (duh) similar to this:

//… the rest of the component declaration
// … this goes in the render function
render: function(){
	var ReactCssTransitionGroup = React.addons.cssTransitionGroup;
@jaxbot
jaxbot / gist:5748513
Created Jun 10, 2013
Block nginx from serving .git directories
View gist:5748513
location ~ /\.git {
deny all;
}
# or, all . directories/files in general (including .htaccess, etc)
location ~ /\. {
deny all;
}
@mbijon
mbijon / xss_clean.php
Last active Apr 14, 2022
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
View xss_clean.php
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources