Skip to content

Instantly share code, notes, and snippets.

@celso
celso / init.vim
Last active October 30, 2024 17:30
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@ethanpil
ethanpil / chromecastbg.xml
Last active September 2, 2017 05:48
chromecastbg
<?xml version="1.0" encoding="utf-8"?>
<rss version = "2.0" xmlns:media = "http://search.yahoo.com/mrss/">
<channel>
<title>Chromecast BG</title>
<link>http://chromecastbg.alexmeub.com</link>
<description>Chromecast Bakground Images</description>
<item>
<title>John Cavacas</title>
@aaronpolhamus
aaronpolhamus / map_clsloc.txt
Created May 12, 2016 01:21
Image net classes + labels
n02119789 1 kit_fox
n02100735 2 English_setter
n02110185 3 Siberian_husky
n02096294 4 Australian_terrier
n02102040 5 English_springer
n02066245 6 grey_whale
n02509815 7 lesser_panda
n02124075 8 Egyptian_cat
n02417914 9 ibex
n02123394 10 Persian_cat
@daniel-j-h
daniel-j-h / ld.gold.sh
Last active June 19, 2024 00:07
default to ld.gold on Ubuntu'ish
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
update-alternatives --config ld
ld --version
GNU gold
export CPP=cpp-5 gcc-5 g++-5
env CXXFLAGS='-march=native -flto -fuse-linker-plugin' cmake .. -DCMAKE_BUILD_TYPE=Release
@commshare
commshare / YUV Sample files.txt
Last active November 26, 2024 13:07
YUV Sample files
http://www.sunrayimage.com/examples.html
http://trace.eas.asu.edu/yuv/ 都是yuv420p的
Example Images Download:
You can download the example images of all the suppoted formats in version 2.
@glen-cheney
glen-cheney / encoding-video.md
Last active November 24, 2024 10:09
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@telmofcosta
telmofcosta / backup-restore sdcard
Created February 8, 2015 12:16
Backup and restore an SD card on Mac OS x (perfect for Raspberry Pi)
# insert SD and find out where it is mounted
diskutil list
# /dev/disk0
# #: TYPE NAME SIZE IDENTIFIER
# 0: GUID_partition_scheme *250.1 GB disk0
# ...
# /dev/disk1
# #: TYPE NAME SIZE IDENTIFIER
# 0: FDisk_partition_scheme *15.7 GB disk1
# ...
@briantjacobs
briantjacobs / storytelling_from_space.md
Last active August 28, 2024 07:14
Storytelling from Space

Storytelling from Space: Tools/Resources

This list of resources is all about acquring and processing aerial imagery. It's generally broken up in three ways: how to go about this in Photoshop/GIMP, using command-line tools, or in GIS software, depending what's most comfortable to you. Often these tools can be used in conjunction with each other.

Acquiring Landsat & MODIS

Web Interface

  • Landsat archive
@CYBAI
CYBAI / JSDC-2014.md
Last active August 29, 2015 14:07
My memo of JSDC 2014

JSDC 2014

Day 1

The Future of the Enterprise Web App

Q1: What's the perspective service of Sencha
Q2: How to improve Sencha with Sencha service

@max-mapper
max-mapper / index.html
Last active August 29, 2015 14:07
jsdc taiwan links from talk
<div><a href="http://jsforcats.com/">JS for cats</a></div>
<div><a href="https://github.com/maxogden/art-of-node#the-art-of-node">Art of Node</a></div>
<div><a href="http://github.com/substack/node-browserify"><img src="talk/browserify.png"></a></div>
<div>javascript should run everywhere</div>
<div><img src="talk/require.png"></div>
<div><img src="talk/venn.png"></div>
<div>browserify + npm = ♥</div>
<div>npm = client side + server side modules in one registry</div>
<div><a href="http://github.com/substack/browserify-handbook">browserify-handbook</a></div>
<div><a href="http://npmjs.org/browserify-adventure">browserify-adventure</a></div>