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> | |
#include <complex.h> | |
int main() { | |
_Complex unsigned int c = 4ju; | |
printf("%f", cimagf(c)); | |
} |
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
GLint gpuVertex, gpuFragment; | |
CGLGetParameter(CGLGetCurrentContext(), kCGLCPGPUVertexProcessing, &gpuVertex); | |
CGLGetParameter(CGLGetCurrentContext(), kCGLCPGPUFragmentProcessing, &gpuFragment); |
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 <iostream> | |
// This is a rewrite and analysis of the technique in this article: | |
// http://bloglitb.blogspot.com/2010/07/access-to-private-members-thats-easy.html | |
// ------- Framework ------- | |
// The little library required to work this magic | |
// Generate a static data member of type Tag::type in which to store | |
// the address of a private member. It is crucial that Tag does not |
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
;; export code as listings | |
(setq org-export-latex-listings t) | |
;; customize latex packages for syntax highlighting | |
(require 'org-latex) | |
(add-to-list 'org-export-latex-packages-alist '("" "listings")) | |
(add-to-list 'org-export-latex-packages-alist '("" "color")) |
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
;; set default compiler | |
(setq org-babel-C-compiler "clang") | |
(setq org-babel-C++-compiler "clang++") |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<!-- The smallest CLM that will color keywords. | |
Copyright (c) 2012 Bare Bones Software, Inc. --> | |
<dict> | |
<!-- You must identify the plist as a CLM: --> |
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
Pod::Spec.new do |s| | |
s.name = "openctm" | |
s.version = "1.0.3" | |
s.summary = "Library for reading/writing compressed triangle mesh (CTM) files." | |
s.homepage = "http://openctm.sourceforge.net" | |
s.license = "zlib/libpng" | |
s.author = {"Marcus Geelnard" => "marcus256@users.sourceforge.net"} | |
s.source = {:http => "http://downloads.sourceforge.net/project/openctm/OpenCTM-#{s.version}/OpenCTM-#{s.version}-src.tar.bz2"} | |
s.source_files = "lib/**/*.{h,c}" | |
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
from twisted.internet.protocol import DatagramProtocol | |
from twisted.internet import reactor | |
forwardMap = { | |
5500 : [ "192.168.110.32:5500", "10.0.1.1:5500" ], | |
5499 : [ "192.168.110.32:5499" ], | |
15501 : [ "localhost:5501" ] | |
} |
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
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
OlderNewer