Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Sanjeev snj33v

🏠
Working from home
Block or report user

Report or block snj33v

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mapview.jsx
class MapView extends React.Component {
constructor(props) {
super(props)
this.state = {
center: 0
}
}
static getDerivedStateFromProps (props, state) {
// both props.right and props.left are simple numerical values
let feat = props.right+ props.left
@snj33v
snj33v / launch.json
Created Apr 24, 2018
vscode chromium launch
View launch.json
{
"version": "0.2.0",
"configurations": [{
"name": "Chromium",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium",
"userDataDir": "/tmp/vscode-chrome-debug",
"runtimeArgs": [
"--temp-profile"
@snj33v
snj33v / settings.json
Last active Apr 24, 2018
vscode config
View settings.json
{
"window.menuBarVisibility": "toggle",
"telemetry.enableCrashReporter": true,
"telemetry.enableTelemetry": true,
"editor.fontFamily": "Fira Code",
"workbench.colorTheme": "Abyss",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.tabSize": 2,
"editor.insertSpaces": false,
View keybase.md

Keybase proof

I hereby claim:

  • I am snj33v on github.
  • I am snj33v (https://keybase.io/snj33v) on keybase.
  • I have a public key ASBJNtMbQFl7ND2cjXijTagGFLoMxbqVWMj1EZZ6Qu2v1Qo

To claim this, I am signing this object:

@snj33v
snj33v / .tern-project
Last active Jan 25, 2018
tern-project config for most of js projects
View .tern-project
{
"ecmaVersion": 6,
"libs": [
"browser",
"ecmascript"
],
"plugins": {
"es_modules": {},
"node": {},
"webpack": {},
View keybase.md

Keybase proof

I hereby claim:

  • I am snj33v on github.
  • I am smdrz (https://keybase.io/smdrz) on keybase.
  • I have a public key whose fingerprint is CEFF F4A7 B4BB 90EC 6CB7 4B46 E40B 6145 8C8F 6603

To claim this, I am signing this object:

View dualshock4.h
/**
* dualshock4.h - DualShock 4 USB HID Report Helper
*
* NOTE: Do not use this for production purposes, it's far from complete and is my
* initial attempt at working with USB HID. If it doesn't work, too bad.
* (Hoping to put this into content/browser/gamepad someday. If I ever finish.)
**
* Copyright (c) 2014 Sangwhan Moon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
View .files
src/main.cpp
src/ofApp.cpp
src/ofApp.h
../../../libs/openssl/include/openssl/aes.h
../../../libs/openssl/include/openssl/dh.h
../../../libs/openssl/include/openssl/x509v3.h
../../../libs/openssl/include/openssl/txt_db.h
../../../libs/openssl/include/openssl/ebcdic.h
../../../libs/openssl/include/openssl/krb5_asn.h
View gist:f74778deeb97c7c1569e

How to install cGit on Nginx (Ubuntu server)

Step-by-step installtion of cGit on nginx without funky rewrite rules.

Pre-requisites

This is for

@snj33v
snj33v / gtkmb1
Last active Aug 29, 2015
example using Gtk.MenuButton()
View gtkmb1
# !/usr/bin/python3
__author__ = 'sam'
from gi.repository import Gtk
class Window(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self)
self.set_default_size(400, 200)
self.set_default_geometry(400, 200)
You can’t perform that action at this time.