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
[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
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
#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
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
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
Need to install extensions: | |
dash to dock | |
topicons | |
Fix workspaces: | |
gsettings set org.gnome.shell.overrides workspaces-only-on-primary false |
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
CHANNEL=$1 | |
if [ -z $CHANNEL ]; then | |
echo "Missing channel name parameter." | |
exit 0 | |
fi | |
mkdir $CHANNEL | |
cd $CHANNEL | |
youtube-dl -ciw -o '%(upload_date)s - %(title)s.%(ext)s' ytuser:$CHANNEL |
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
dispatch_async(dispatch_get_main_queue(), ^{ | |
[self doSomething]; | |
}); |
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
<?php | |
class Helpers { | |
public static function stripKeys(array $myArray, array $keys) { | |
foreach ($myArray as $key => $value) { | |
if (in_array($key, $keys)) { | |
unset($myArray[$key]); |