Skip to content

Instantly share code, notes, and snippets.

body {
font: 14px helvetica neue, helvetica, arial, sans-serif;
}
#cy {
height: 100%;
width: 100%;
position: absolute;
left: 0;
top: 0;
@robin-pham
robin-pham / problemset1-reverse.java
Last active January 28, 2016 22:27
Problem Set 1: Reverse a Linked List, Partition a Linked List
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
//build two linkedlists, the smallers, the biggers|equals, attach head to tail at the end;
@robin-pham
robin-pham / component1.js
Last active June 29, 2016 03:15
How do I reuse all these onClick functions? I don't want to copy and paste the same functions over and over.
import React, { Component } from 'react';
import { getAsyncRandomReport } from 'thirdPartyLibrary';
class UniqueComponentOne extends Component {
constructor(props){
super(props);
this.onClickRefresh = this.onClickRefresh.bind(this);
this.onClickUpdate = this.onClickUpdate.bind(this);
}
report = getAsyncRandomReport();
@robin-pham
robin-pham / cloudSettings
Last active January 18, 2021 01:30
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-18T01:30:29.263Z","extensionVersion":"v3.4.3"}
@robin-pham
robin-pham / keybindings.json
Created April 2, 2024 00:01
vscode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+cmd+l",
"command": "turboConsoleLog.displayLogMessage"
},
{
"key": "ctrl+alt+l",
"command": "-turboConsoleLog.displayLogMessage"
},