Skip to content

Instantly share code, notes, and snippets.

View vale-c's full-sized avatar
:octocat:

Vale vale-c

:octocat:
View GitHub Profile
@nickytonline
nickytonline / customizing-vs-code.md
Last active January 27, 2025 04:20
Customizing VS Code for Two Fonts.

Customizing VS Code

I followed the instructions in this blog post Multiple Fonts: Alternative to Operator Mono in VSCode, but did not see any changes made to VS Code. After digging a bit, I discovered that all the CSS class names had changed. They’re now e.g. .mtk13, .mtk16 { … }.

Gotchas

  • Ensure it’s a file URL e.g. { "vscode_custom_css.imports": [ "file:///Users/Brian/Desktop/vscode-style.css" ] }
  • If you move the location of your file and update your user settings with the new location, you will need to disable and enable custom CSS cmd+shift+p.
  • Also, anytime you change the style in your custom CSS file, you need to disable, then re-enable the extension.

For reference

@jayant91089
jayant91089 / leetcode-bloomberg.md
Last active February 13, 2025 15:25
Answers to leetcode questions tagged 'Bloomberg'

121 Best Time to Buy and Sell Stock

Say you have an array for which the ith element is the price of a given stock on day i.

If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.

Example 1: Input: [7, 1, 5, 3, 6, 4] Output: 5

@kutyel
kutyel / facebook.js
Last active October 11, 2020 17:31
Question for my Frontend Interview at Facebook
/*
* Create an event emitter that goes like this
* emitter = new Emitter();
*
* Allows you to subscribe to some event
* sub1 = emitter.subscribe('function_name', callback1);
* (you can have multiple callbacks to the same event)
* sub2 = emitter.subscribe('function_name', callback2);
*
* You can emit the event you want with this api
@CleverProgrammer
CleverProgrammer / recursive_vs_iterative.py
Created September 20, 2016 14:53
Tangible example problems solved both iteratively and then recursively to clearly outline the difference.
__author__ = 'Rafeh'
"""
Program: recursive_vs_iterative
Description: This program contains a few common iterative functions and their solutions. More importantly,
it also contains their counter-part recursive functions and their solutions. This is important in visualizing
side by side the differences between iterative implementations and recursive implementations of a given function.
Notice that recursive solutions tend to be more elegant!
Version: 3.4
"""
@robinpokorny
robinpokorny / 1-info.md
Last active September 4, 2022 17:27
📰 Dead simple tweetable JavaScript PubSub pattern module using Set (ES2015)
const React = {};
/**
* ReactElements are lightweight objects which contain information necessary to
* create the equivalent DOM nodes. All JSX tags are transformed into functions
* that return instances of this class.
* Note that the decision to actual create those nodes and insert them into the
* document hasn't been made yet: it is possible that that might never happen.
*/
@akshaynagpal
akshaynagpal / LinkedList.java
Last active October 2, 2024 08:46
Linked List From Scratch in Java
package src.LinkedList;
public class LinkedList {
public Node head;
public int listCount;
public LinkedList(){
head = new Node(0);
listCount = 0;
}
@a1ip
a1ip / 000_eoc_python_solutions.md
Last active May 2, 2019 07:48
Empire of code Python solutions https://empireofcode.com
@marcosfdev
marcosfdev / React JS Weather App.markdown
Created November 4, 2015 04:09
React JS Weather App
@mkowoods
mkowoods / merge_sort.py
Created January 26, 2015 18:25
recursive merge sort from scratch
def merge(lhs, rhs):
lhs, rhs = lhs[:], rhs[:]
merged_list = []
while bool(lhs) and bool(rhs):
if lhs[0] <= rhs[0]:
merged_list.append(lhs.pop(0))
else:
merged_list.append(rhs.pop(0))
return merged_list + lhs + rhs