Skip to content

Instantly share code, notes, and snippets.

View sails-cookie-in-react-native-fetch.txt
@Noitidart
Noitidart / stackoverflow-query-search-comments.txt
Last active Apr 10, 2019
Search for comments by tag of post
View stackoverflow-query-search-comments.txt
// https://data.stackexchange.com/stackoverflow/query/1027054/search-posts-by-userid-comment-text?CommentText=ios&TagName=react-native
SELECT Posts.Id AS [Post Link], Comments.Text, Comments.CreationDate
FROM Comments
LEFT JOIN Posts ON Posts.Id = Comments.PostId
WHERE UPPER(Comments.Text) LIKE UPPER('%##CommentText##%')
AND Comments.UserId = '1828637'
AND Posts.Tags LIKE '%<##TagName##>%'
ORDER BY Comments.CreationDate DESC
View horizontallyScaledDistributedSystem.md
// client -> loadbalancer -> server -> machine

class Server {
    private HashMap<Integer, Machine> machineByPersonId;    
}

class Machine{
    private int id;
    private HashMap<Integer, Person> personById;    
View Indeed-FullStack-February 18th, 2019.md

Frontend Focused Full-Stack Software Engineer

Type: On-site Level: L2 / SWE2

  1. (Type: Behavioral) I went through Amazon leadership principals and examples at work. He asked about community driven, customer driven products like NativeShot. He asked about tickets I got. I gave him example of bias for action where I took a low priority ticket and made it high priority without manager approval, because it was for a muti-million dollar deal. I talked about how the AWS docs were too geeky and not customer focused, and how I stuck with my "always right gut" feeling and kept a nose out. I did disagree and commit though, and didn't push until I had facts.

  2. (Type: Whiteboard Code) This actually was more design then code, even though I had a design/architecutre session letter. I had to design an async TaskQueue without using workers. Tasks should run serially, meaning it should not do next task until this task is done. He gave me it should be used like this:

View Twitch-SDE_Intern-Feb 14th 2019.md

Generic Software Engineer Internship

Type: Phone

He just straight jumped into code after talking a little about the extension I made for Twitch.

Question

Given a a json object that has a start and stop offset, and severity, return a list of words that contain at least one character from any of the offsets, and have a severity above 5.

View lifecycle.test.js
const Cloud = require('../assets/dependencies/cloud');
const ioClient = require('socket.io-client');
const sailsIO = require('../assets/dependencies/sails.io');
const mockSailsSockets = require('./utils/mockSailsSockets');
let sails;
// Before running any tests...
before(function(done) {
View lifecycle.test.js
const Cloud = require('../assets/dependencies/cloud');
const ioClient = require('socket.io-client');
const sailsIO = require('../assets/dependencies/sails.io');
const mockSailsSockets = require('./utils/mockSailsSockets');
let sails;
// Before running any tests...
before(function(done) {
View SocketActivity.js
class SocketActivity {
static get Status() {
return {
CONNECT: 'connect',
DISCONNECT: 'disconnect',
RECONNECT: 'reconnect'
};
View sauils.io.off.bug.js
const SocketsMock = require('./utils/SocketsMock');
const Cloud = require('../assets/dependencies/cloud');
const ioClient = require('socket.io-client');
const sailsIO = require('../assets/dependencies/sails.io');
let sails;
// Before running any tests...
before(function(done) {
View _vscode-how-to-debug-ts.md

JS only

  1. Create folder
  2. Open folder in VSCode
  3. Open any .js file, then hit F5.

TS

  1. Create folder
  2. Open folder in VSCode
  3. npm i typescript --save-dev
  4. Create tsconfig.json
You can’t perform that action at this time.