Skip to content

Instantly share code, notes, and snippets.

@BilalAlam173
BilalAlam173 / binary-tree.js
Created Oct 21, 2020
Different types of Binary Tree Traversals implementation in javascript
View binary-tree.js
function Node(key, left, right) {
this.key = key;
this.right = right;
this.left = left;
}
function BinaryTree(root) {
this.root = root;
}
@ericmjl
ericmjl / ds-project-organization.md
Created Jun 12, 2018
How to organize your Python data science project
View ds-project-organization.md

How to organize your Python data science project

Having done a number of data projects over the years, and having seen a number of them up on GitHub, I've come to see that there's a wide range in terms of how "readable" a project is. I'd like to share some practices that I have come to adopt in my projects, which I hope will bring some organization to your projects.

Disclaimer: I'm hoping nobody takes this to be "the definitive guide" to organizing a data project; rather, I hope you, the reader, find useful tips that you can adapt to your own projects.

Disclaimer 2: What I’m writing below is primarily geared towards Python language users. Some ideas may be transferable to other languages; others may not be so. Please feel free to remix whatever you see here!

Disclaimer 3: I found the Cookiecutter Data Science page after finishing this blog post. Many ideas overlap here, though some directories are irrelevant in my work -- which is to

View Set-LastLoggedOnUser.ps1
# Name: Set-LastLoggedOnUser
# Author: James Schlackman
# Last Modified: May 31 2019
#
# Sets the last logged on user on the Windows login screen to a specificied AD user. Will first check
# for a user in the managedBy attribute of the current computer and offer the option to use that
# user automatically. If declined, prompts for an AD username to use instead.
#
# This script uses ADSI for AD queries inatead of the ActiveDirectory module since that module is not
# installed by default on standard workstations.
@anandsun
anandsun / Illinois_counties
Created Nov 19, 2013
KML file for Illinois counties.
View Illinois_counties
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<name>Illinois_counties</name>
<Style id='Style0-point-1'>
<IconStyle>
<color>ff0000ff</color>
<scale>1.0</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png</href>
View init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@okhiroyuki
okhiroyuki / bt-logcat.txt
Created Oct 14, 2020
Bluetooth headset logcat in RockPi4c
View bt-logcat.txt
2013-01-18 17:50:10.634 155-155/? I/vold: Vold 3.0 (the awakening) firing up
2013-01-18 17:50:10.635 155-155/? D/vold: Detected support for: ext4 f2fs vfat
2013-01-18 17:50:10.638 155-155/? D/vold: Found unmanaged dm device named product
2013-01-18 17:50:10.638 155-155/? D/vold: Found unmanaged dm device named vendor
2013-01-18 17:50:10.638 155-155/? D/vold: Found unmanaged dm device named system
2013-01-18 17:50:10.638 155-155/? D/vold: Found unmanaged dm device named odm
2013-01-18 17:50:10.638 155-155/? W/vold: Failed to LOOP_GET_STATUS64 /dev/block/loop10: No such device or address
2013-01-18 17:50:10.638 155-155/? W/vold: Failed to LOOP_GET_STATUS64 /dev/block/loop2: No such device or address
2013-01-18 17:50:10.638 155-155/? W/vold: Failed to LOOP_GET_STATUS64 /dev/block/loop15: No such device or address
2013-01-18 17:50:10.638 155-155/? W/vold: Failed to LOOP_GET_STATUS64 /dev/block/loop3: No such device or address
View initalState.json
{
"initalState": {
"mylist": [],
"trends": [
{
"id": 2,
"slug": "tvshow-2",
"title": "In the Dark",
"type": "Scripted",
"language": "English",
@leonardofed
leonardofed / README.md
Last active Oct 21, 2020
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@abeluck
abeluck / concat-mp4-annexb.md
Created Sep 20, 2012
Concat MP4 files using AnnexB bitstream format
View concat-mp4-annexb.md

Concat MP4 files without transcoding to mpeg

  1. Use the h264_mp4toannexb bitstream filter to convert the mp4s (video steam only) into the AnnexB bitstream format

    ffmpeg -i input1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts
    # repeat for up to inputN
    
  2. Concat the files using cat

You can’t perform that action at this time.