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
killall cfprefsd |
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 printError | |
{ | |
# Number after setaf is the colour... | |
# 0 - black | |
# 1 - red | |
# 2 - green | |
# 3 - yellow | |
# 4 - blue | |
# 5 - magenta | |
# 6 - cyan |
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
nm "PATH TO EXE" > "OUTFILE.txt" |
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
git describe --abbrev=0 --tag |
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
git log --pretty=format:%s <LAST_RELEASE>..HEAD |
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
grep "^String_to_find" "myfile.txt" | |
# example: | |
# grep "^Bugfix:" "~/myfile.txt" | |
# Finds and returns all lines that start with Bugfix: |
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 <random> | |
std::mt19937 generator; | |
double mean = 0.0; | |
double std = 1.0; | |
std::normal_distribution<double> normal(mean, std); | |
const double normalNumber = normal(generator); |
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
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.google.com"]]; |
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
NSView *themeFrame = [[mainWindow contentView] superview]; | |
NSRect c = [themeFrame frame]; | |
NSRect aV = [accessoryView frame]; | |
NSRect newFrame = NSMakeRect(c.size.width - aV.size.width, | |
c.size.height - aV.size.height, | |
aV.size.width, | |
aV.size.height); | |
[accessoryView setFrame:newFrame]; | |
[themeFrame addSubview:accessoryView]; |
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
window.titleVisibility = NSWindowTitleHidden; |
OlderNewer