Skip to content

Instantly share code, notes, and snippets.

View mpalmr's full-sized avatar

Matthew Palmer mpalmr

  • Compass Digital
  • Toronto
View GitHub Profile
#![warn(rust_2018_idioms)]
#![warn(clippy::all)]
#![warn(clippy::pedantic)]
use std::thread::sleep;
use std::time::Duration;
use sdl2::event::Event;
use sdl2::keyboard::Keycode;
use sdl2::pixels::Color;
use reqwest::header::{
HeaderMap, HeaderValue, ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, CACHE_CONTROL, DNT,
USER_AGENT, HOST, PRAGMA,
};
use reqwest::{Error, Response};
pub struct Client {
client: reqwest::Client,
headers: HeaderMap,
}
'use strict';
module.exports = {
devServer: {
proxy: 'http://localhost:6543',
},
};
'use strict';
module.exports = {
extends: 'airbnb-base',
plugins: ['import'],
parserOptions: {
sourceType: 'script',
},
env: {
node: true,
curl 'http://localhost:3000/api/v1/login' -H 'Pragma: no-cache' -H 'HSJri: aaJJnGCm' -H 'Accepts: application/json' -H 'Origin: http://localhost:3000' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: http://localhost:3000/' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"email":"mspalmer91@gmail.com","password":"hunter1"}' --compressed
Responds as 404
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
<script>
// alert("test");
var req = new XMLHttpRequest();
req.open("POST", "/api/login");
req.send(JSON.stringify({"username":"test", "password":"password123"});
</script>
this.selectedTokens = m.prop(Array.from(Array(this.tokens().length))
.map(() => m.prop()));