Skip to content

Instantly share code, notes, and snippets.

Nachiket Patel nachiket-p

  • Logicwind
  • India
Block or report user

Report or block nachiket-p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gaearon
gaearon / connect.js
Last active Sep 19, 2019
connect.js explained
View connect.js
// connect() is a function that injects Redux-related props into your component.
// You can inject data and callbacks that change that data by dispatching actions.
function connect(mapStateToProps, mapDispatchToProps) {
// It lets us inject component as the last step so people can use it as a decorator.
// Generally you don't need to worry about it.
return function (WrappedComponent) {
// It returns a component
return class extends React.Component {
render() {
return (
@nnnnathann
nnnnathann / gist:3491640
Created Aug 27, 2012
Reverse HTTP Proxy (Apache + nodejs)
We couldn’t find that file to show.
@abersager
abersager / index.html
Created Mar 29, 2012
Using cookies and nginx web server configuration to conditionally serve high resolution images
View index.html
<!doctype html>
<!--
Using cookies and nginx web server configuration to conditionally serve
high resolution images to <img> tags
-->
<html>
<head>
<!-- set device-pixel-ratio cookie using JavaScript -->
<script type="text/javascript" charset="utf-8">
You can’t perform that action at this time.