Skip to content

Instantly share code, notes, and snippets.

View krsjoseph's full-sized avatar
🏠
Working from home

krsjoseph

🏠
Working from home
View GitHub Profile
@krsjoseph
krsjoseph / comparison.md
Created October 7, 2015 03:30 — forked from makmanalp/comparison.md
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).

@krsjoseph
krsjoseph / README.md
Created January 28, 2016 16:00 — forked from debashisbarman/README.md
A Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

#Creating a Twitter bot with Node.js Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

##Tools we need Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application

@krsjoseph
krsjoseph / clocks.html
Created November 10, 2016 20:12
jquery clock widget
<div id="clock_pos"></div>
<div id="clock_canada"></div>
<div id="clock_usa"></div>
@krsjoseph
krsjoseph / settings.json
Last active January 5, 2017 13:53
VS Code settings
// Place your settings in this file to overwrite the default settings
{
"highlight_line": true,
"editor.fontFamily": "Operator Mono",
"editor.fontSize": 16,
"files.autoSave": "onFocusChange",
"editor.tabSize": 2,
"editor.fontLigatures": true,
"editor.mouseWheelZoom": true,
"extensions.autoUpdate": false
for (var i = 1; i <= 100; i++) {
var f = i % 3 == 0, b = i % 5 == 0;
console.log(f ? b ? "FizzBuzz" : "Fizz" : b ? "Buzz" : i);
}
let array = [[1,2,[3]],4];
const flatten = arr => arr.reduce((a, b) => a.concat(Array.isArray(b)
? flatten(b)
: b), []);
let newArray = flatten(array);
// Old Array
console.log(array)
import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
class Dummy extends Component {
render() {
return (
<div>
<TextField
hintText="Name"
name="requestName"
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
using System.Collections.Generic;
namespace Infotech.Procurement.Requisition.Application.User.Dto
{
public class BasicUserInfo
{
public string id { get; set; }
public List<object> businessPhones { get; set; }
public string displayName { get; set; }
public string givenName { get; set; }