Skip to content

Instantly share code, notes, and snippets.

View samarpanda's full-sized avatar
👋

Samar Panda samarpanda

👋
View GitHub Profile
@nzakas
nzakas / job.md
Last active August 29, 2015 14:18
Staff Software Engineer, Front-end Frameworks, Box

Staff Software Engineer, Front-end Frameworks (Los Altos, CA)

Box's Front-end Frameworks team is looking for an experienced engineer to join us at our Los Altos, CA headquarters on our mission to make building web applications on top of the Box infrastructure easy, fast, and fun.

About the Team

Front-end Frameworks ensures that Box web applications are built on top of the best tools and frameworks available. We actively evaluate third-party libraries and frameworks, as well as building our own, to make sure our feature teams can be as effective and iterative as possible. In the past two years, we've led the establishment of front-end best practices, created a lightweight client-side framework that has improved developer experience by enforcing conventions and loose coupling, and started putting together a Node.js framework to power the next generation of Box web applications.

About the Job

@samarpanda
samarpanda / node-http-shell.conf
Created April 12, 2015 07:02
Adding upstart configuration to start a node service
description "app/http_server.js"
author "Samar - http://samarpanda.com"
# used to be: start on startup
# until we found some mounts weren't ready yet while booting:
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn

Facebook style of injecting js file

<div id="km-root"></div>
<script>(function(d, s, id) {
  var js, kjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//cdn.atomex.net/static/js/pxs/6701/ast.js";
 kjs.parentNode.insertBefore(js, kjs);
@samarpanda
samarpanda / README.md
Last active August 29, 2015 14:21
What is nodejs?

What is nodejs?

  1. JavaScript on the server
  2. Asynchronous programming
  3. Module-driven development
  4. small core, vibrant ecosystem
  5. New models in Open Source

Scrolling Performance

  1. Expensive styles

User/Preferences.sublime-settings [New]

{
	"caret_extra_bottom": 3,
	"caret_extra_top": 3,
	"caret_extra_width": 2,
	"color_scheme": "Packages/User/SublimeLinter/Seti (SL).tmTheme",
	"font_size": 13,
	"highlight_line": true,
@samarpanda
samarpanda / app.js
Last active August 29, 2015 14:28 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
anonymous
anonymous / index.html
Created August 25, 2015 00:47
JS Bin // source http://jsbin.com/kigedaniho
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Time using reactjs">
<script src="http://fb.me/react-0.13.1.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>

Kill Chrome tabs

ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill
@samarpanda
samarpanda / example-subtree-usage.md
Last active September 2, 2015 14:54 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.