Skip to content

Instantly share code, notes, and snippets.

@awkoy
awkoy / fb-events.ts
Created Aug 7, 2020
FacebookEvents enum
View fb-events.ts
export enum FacebookEvents {
EVENT_NAME_ACHIEVED_LEVEL = "fb_mobile_level_achieved",
EVENT_NAME_ACTIVATED_APP = "fb_mobile_activate_app",
EVENT_NAME_ADDED_PAYMENT_INFO = "fb_mobile_add_payment_info",
EVENT_NAME_ADDED_TO_CART = "fb_mobile_add_to_cart",
EVENT_NAME_ADDED_TO_WISHLIST = "fb_mobile_add_to_wishlist",
EVENT_NAME_COMPLETED_REGISTRATION = "fb_mobile_complete_registration",
EVENT_NAME_COMPLETED_TUTORIAL = "fb_mobile_tutorial_completion",
EVENT_NAME_DEACTIVATED_APP = "fb_mobile_deactivate_app",
EVENT_NAME_INITIATED_CHECKOUT = "fb_mobile_initiated_checkout",
View kubectl
kubectl exec -it front-front-99b4569f5-9gsrv --namespace deploy-service-front -- /bin/bash
kubectl --namespace=deploy-service-front get pods
@resovarish
resovarish / min4.java
Created Aug 7, 2020
Function that returns the minimum of three numbers // Функция, вычисляющая минимум из 4 чисел // Написать функцию, которая вычисляет минимум из четырёх чисел
View min4.java
public static int min4(int a, int b, int c, int d) {
int g = min2(a, b);
int f;
if (g < c) {
if (g < d)
f = g;
else
f = d;
} else {
if (c < d)
View remove the loop from ll
void removeLoop(Node* head)
{
// code here
// just remove the loop without losing any nodes
Node *loop_node=head,*hare;
while(loop_node && hare&& hare->next)
{
loop_node=loop_node->next;
hare=hare->next->next;
if(loop_node==hare)
View DB0201EN-Week3-1-2-Querying-v4-py.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kuntalchandra
kuntalchandra / vertical_order_traversal_binary_tree.py
Created Aug 7, 2020
Vertical Order Traversal of a Binary Tree
View vertical_order_traversal_binary_tree.py
"""
Given a binary tree, return the vertical order traversal of its nodes values.
For each node at position (X, Y), its left and right children respectively will be at positions (X-1, Y-1)
and (X+1, Y-1).
Running a vertical line from X = -infinity to X = +infinity, whenever the vertical line touches some nodes, we report
the values of the nodes in order from top to bottom (decreasing Y coordinates).
If two nodes have the same position, then the value of the node that is reported first is the value that is smaller.
View BOARDS-TEST0-JOB1-549.md
View PY0101EN-2-3-Dictionaries.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View profile.spec.js
/// <reference types="cypress" />
context('Invite Client', () => {
after(() => {
cy.logout().then(() => {
cy.url().should('contains', Cypress.env('base_login_url'));
});
});
it('should display the profile page with confirmed email', () => {
View Short-Hand 1
if(someVariableExists)
someVariable = false
You can’t perform that action at this time.