Skip to content

Instantly share code, notes, and snippets.

@cristii
cristii / test.md
Created April 24, 2025 14:59
test

test

123


abc

curl 'http://www.devprev.com/arlington/api/orders' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Credentials-Token: 9f58a1dc99e8f92f3ec1a441136108c8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36' \
-H 'Auth-Token: 4D1D8902094FE083' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7gRu0s0iWZ0G3FkZ' \
-H 'Origin: http://localhost:8081' \
curl 'http://www.devprev.com/arlington/api/orders' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Credentials-Token: 29475c3df10f35aa2163671493c15595' \
-H 'Accept: application/json, text/plain, */*' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36' \
-H 'Auth-Token: 4D1D8902094FE083' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryMyhgBRqQUzKq6tJl' \
curl 'http://www.devprev.com/arlington/api/orders' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Credentials-Token: 9f58a1dc99e8f92f3ec1a441136108c8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36' \
-H 'Auth-Token: 4D1D8902094FE083' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Origin: http://localhost:8081' \
@cristii
cristii / render-logic.js
Created January 20, 2018 16:04 — forked from markerikson/render-logic.js
React render function organization
class ParentComponent extends Component {
render() {
// My basic render function structure:
// 1) Extract values from props and state
const {a, b, someBoolean, someList} = this.props;
// 2) Render any dependent items into temporary variables, such as conditional components or lists
const conditionalComponent = someBoolean ? <SomeComponent /> : null;
const listItems = someList.map(item => <ListItem item={item} />);
yarn add enzyme flow immutable jquery material-ui materialize-css react react-dom react-motion react-redux react-router react-router-dom react-styleguidist react-test-renderer react-transition-group redux redux-actions redux-immutable redux-logger redux-observable redux-orm serve styled-components
import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createLogger } from 'redux-logger';
import rootReducer from './reducers';
const loggerMiddleware = createLogger();
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default function configureStore(preloadedState) {
return createStore(
// Action creators can be impure.
export const addChat = ({
// cuid is safer than random uuids/v4 GUIDs
// see usecuid.org
id = cuid(),
msg = '',
user = 'Anonymous',
timeStamp = Date.now()
} = {}) => ({
type: ADD_CHAT,
@cristii
cristii / cheng-lou-spectrum-of-abstraction.md
Created June 27, 2017 17:59 — forked from markerikson/cheng-lou-spectrum-of-abstraction.md
Cheng Lou - "On the Spectrum of Abstraction" summarized transcript (React Europe 2016)

Cheng Lou - On the Spectrum of Abstraction

Cheng Lou, a former member of the React team, gave an incredible talk at React Europe 2016 entitled "On the Spectrum of Abstraction". That talk is available for viewing here: https://www.youtube.com/watch?v=mVVNJKv9esE

It's only a half-hour, but it is mind-blowing. It's worth re-watching two or three times, to let the ideas sink in.

I just rewatched the talk for some research, and wrote down a summary that's semi-transcript-ish. I didn't see any other transcripts for this talk, other than the auto-generated closed captions, so I wanted to share for reference.

Summary