This file contains 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
if ([[self window] respondsToSelector:@selector(setRestorable:)]) { | |
// NSLog(@"Disabling restorable documents."); | |
[[self window] setRestorable:NO]; | |
} | |
// GCC complains with the following warning: | |
// warning: ‘NSWindow’ may not respond to ‘-setRestorable: |
This file contains 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
Rails::Initializer.run do |config| | |
# Other stuff | |
# Gems | |
config.gem "json" | |
config.gem "exceptional" | |
end |
This file contains 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
require 'rubygems' | |
# Set up gems listed in the Gemfile. | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) |
This file contains 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
uint32_t byteswap(uint32_t value) | |
{ | |
return ((value >> 24) & 0x000000ff) | | |
((value >> 8) & 0x0000ff00) | | |
((value << 8) & 0x00ff0000) | | |
((value << 24) & 0xff000000); | |
} |
This file contains 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
__Z8byteswapj: ## @_Z8byteswapj | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp7: | |
.cfi_def_cfa_offset 16 | |
Ltmp8: | |
.cfi_offset %rbp, -16 | |
movq %rsp, %rbp | |
Ltmp9: |
This file contains 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
// VoodooPad | |
// | |
// Copyright (C) 2004-2018 Primate Labs Inc. All Rights Reserved. | |
////////////////////////////////////////////////////////////////////////////// | |
#import "VPQTTabViewController.h" | |
NSString* const VPItemScheme = @"x-voodoopad-item"; | |
@interface VPItemLoaderDelegate : NSObject <AVAssetResourceLoaderDelegate> |
This file contains 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 <stdio.h> | |
void update(int* variable) | |
{ | |
*variable = *variable * 2; | |
} | |
int main(int, char**) | |
{ | |
int a = 1; |