Skip to content

Instantly share code, notes, and snippets.

pagelen_t saveLength= 128;
uint8_t desttype = 'F';
uint16_t part1dec = 0;
uint16_t part2dec = 16384; //PART2 addr in dec
uint16_t i;
for (int j = 0; j < 20; j++) {
uint8_t foo[128];
/*
uint16_t flashSize = 32768;
uint16_t BLSizeInBytes = 1024;
for(uint16_t f = flashSize - BLSizeInBytes; f < flashSize; f++) {
int quotient = pgm_read_byte(f);
int i=0,temp;
char hexadecimalNumber[2] = {48, 48};
while(quotient!=0) {
temp = quotient % 16;
---
- hosts: {{host}}
sudo: yes
gather_facts: no
tasks:
- name: apt get update upgrade
apt: update_cache=yes upgrade=safe
- name: install virtual:env
apt: name=python-virtualenv
- name: create virtualenv
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
filetype off " required
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
"Plug 'scrooloose/nerdtree'
Plug 'vim-syntastic/syntastic'
Plug 'rking/ag.vim'
Plug 'vim-airline/vim-airline'
filetype off " required
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'vim-syntastic/syntastic'
Plug 'rking/ag.vim'
Plug 'vim-airline/vim-airline'
@prrraveen
prrraveen / list.md
Last active February 3, 2018 20:37
Standardise Interview Process for Frontend Developer with React Experience
Task/Technology Need
ES6 Essential
FlexBox Essential
Any 1 CSS Pre-processor (SAAS/LESS/Others) Essential
React Essential
Any one Data Management Model (Redux/ FLUX) Essential
Any 1 Build System essential (Webpack/ RollUp, Gulp) Essential
File Upload Essential
OAuth Implementation Essential
@prrraveen
prrraveen / test.js
Last active November 8, 2017 09:33
const categories =[ { id: 'E-commerce', parent: null }, { id: 'Electronics', parent: 'E-commerce' }, { id: 'Mobiles', parent: 'Electronics' }, { id: 'Laptops', parent: 'Electronics' }, { id: 'Camera', parent: 'Electronics' }, { id: 'Lifestyle', parent: 'E-commerce' }, { id: 'Clothing', parent: 'Lifestyle' }, { id: 'Footware', parent: 'Lifestyle' }, { id: 'Grooming', parent: 'Lifestyle' }, { id: 'Jewellery', parent: 'Lifestyle' },]
function Node(data) {
this.data = data;
this.children = [];
}
function solution(arr) {
const n = arr.length
@prrraveen
prrraveen / tableTop.md
Created February 28, 2017 10:54
T-Slot Table Top router bed

Advantages to this T-Slot table include durability, light weight, and if a piece should ever be damaged it is easily unscrewed, and slid out for replacement. All around it is a great solution for keeping your CNC Router projects stable, functional, and stationary, and looking good. Clamping becomes easier. You can clamp very small work peace.

@prrraveen
prrraveen / Main.hs
Created December 26, 2016 14:58
WAI WARP app
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes, ExtendedDefaultRules #-}
module Main where
import Control.Monad
import Network.Wai
import Network.HTTP.Types
import Network.Wai.Handler.Warp (run)
import Data.ByteString
import Control.Monad
import System.Process