This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install can-utils | |
git clone https://github.com/linux-can/can-utils.git | |
cd can-utils | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hidef.h> /* common defines and macros */ | |
#include "derivative.h" /* derivative-specific definitions */ | |
#include "can.h" | |
void canInit(void); | |
void main(void) | |
{ | |
unsigned char errorflag; | |
unsigned char txbuff[] = "abcd"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hidef.h> /* common defines and macros */ | |
#include "derivative.h" /* derivative-specific definitions */ | |
#define ST_ID_100 0x100 | |
#define ACC_CODE_ID100 0x2000 | |
#define ACC_CODE_ID100_HIGH ((ACC_CODE_ID100 & 0xFF00)>>8) | |
#define ACC_CODE_ID100_LOW (ACC_CODE_ID100 & 0x00FF) | |
/* Mask Code Definitions */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugins | |
------- | |
minimap | |
todo-show | |
highlight-selected | |
minimap-highlight-selected | |
file-icons | |
open-recent | |
save-session | |
merge-conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \[\033[01;33m\]\$(__git_ps1) \n~λ\[\033[00m\] " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from PIL import Image | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument('-i', '--image', help='image') | |
args = vars(parser.parse_args()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import sys | |
width = 50 | |
def displayProgress(progress): | |
bar = int(progress * width) | |
sys.stdout.write("\r[%s%s] %.2f%%" % (("=" * bar), (" " * (width - bar)), progress * 100) ) | |
sys.stdout.flush() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(ASIO_ROOT "asio/include") | |
set(ASIO_VERSION_ROOT "asio-${ASIO_VERSION}/include") | |
find_path(ASIO_INCLUDE_DIR | |
NAMES | |
asio.hpp | |
PATHS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Find Arduino Core | |
# | |
# | |
# @author Natesh Narain | |
# @since Feb 03 2016 | |
# Find Arduino version file | |
file(GLOB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Script for generating new posts for my jekyll base blog | |
# | |
# @author Natesh Narain | |
import os | |
import datetime |