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
sudo gpsbabel -t -w -i garmin -f usb: -o gpx -F out.gpx |
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
gdb --args ./main -i settings.cfg |
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
#define C_TEXT( text ) ((char*)std::string( text ).c_str()) |
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
CC = gcc | |
CXX = g++ | |
CXXFLAGS = -c -Wall -Wextra -pedantic | |
CCFLAGS = -c | |
LDFLAGS = -lpthread | |
CPP_SRC = main.cpp | |
CPP_SRC_OBJS = $(CPP_SRC:.cpp=.o) |
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
[btn setUserInteractionEnabled:YES]; |
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
#pragma once |
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
function slice_menu($menu_name) { | |
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { | |
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); | |
$menu_items = wp_get_nav_menu_items($menu->term_id); | |
$menu_list = '<dl class="sub-nav">'; | |
$menu_counter = count($menu_items); | |
foreach ( (array) $menu_items as $key => $menu_item ) { | |
$title = $menu_item->title; |
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
Check .htaccess permissions. Should be 644. |
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
// Create/Remove directories | |
#include <sys/stat.h> | |
// #include <sys/types.h> // Only needed if you want access to mode_t type | |
mkdir("folder", 0755); | |
rmdir("folder"); | |
// Uniform Random |
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
# Go to the directory | |
cd trunk/ | |
# Add just the single file to the current directories ignore list (like above) | |
# Note the dot at the end of the command is important | |
svn propset svn:ignore secret.txt . | |
# See that things worked | |
svn propget svn:ignore . # Notice the single file was added to the list | |
svn status --no-ignore # You should see an 'I' next to the ignored files |