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
<?php | |
$header = | |
javelin_tag( | |
'h1', | |
array( | |
'class' => 'maniphest-task-group-header', | |
'sigil' => 'task-group', | |
'meta' => array( | |
'priority' => head($list)->getPriority(), | |
), |
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
(font-lock-add-keywords | |
'js-mode `(("\\(function *\\)(" | |
(0 (progn (compose-region (match-beginning 1) | |
(match-end 1) "ƒ") | |
nil))))) |
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
(font-lock-add-keywords | |
'php-mode `(("\\(<\\?php echo\\) \\($[^\n>]*\\) \\(\\?>\\)" | |
(0 (progn (compose-region (match-beginning 1) | |
(match-end 1) "{") | |
(compose-region (match-beginning 3) | |
(match-end 3) "}") | |
nil))))) |
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
struct PSOutput | |
{ | |
float4 Color: COLOR; | |
}; | |
PSOutput psMain(void) | |
{ | |
PSOutput Output; | |
Output.Color = float4(1, 0, 0, 0); | |
return Output; |
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
Xli::Stream *shaderFile = fs->OpenFile("shader.cg", Xli::FileMode::FileModeRead); | |
Frontend4::DX10Program* prg = Frontend4::DX10Program::Load(device, shaderFile); |
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
OBJS_STUDIO=\ | |
Sequencer.o\ | |
FramebufferBrowser.o\ | |
GUILoader.o\ | |
StudioGfx.o\ | |
ProbeBrowser.o\ | |
Tracker.o\ | |
GUISaver.o\ | |
Sync.o\ | |
GUI/InputDialog.o\ |
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
<?php | |
/** | |
* Used to autoload aether classes | |
* | |
* @access public | |
* @return bool | |
*/ | |
public static function autoLoad($class) { | |
if (class_exists($class, false)) | |
return true; |
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 'ftools' | |
class Appartment | |
include DataMapper::Resource | |
attr_accessor :app_images | |
property :id, Serial | |
property :name, String, :nullable => false, :unique => true | |
property :bedrooms, Integer, :nullable => false | |
property :bathrooms, Integer, :nullable => false |
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
module TraceCalls | |
def self.included(klass) | |
def klass.method_added(method) | |
return if @_meta_yo | |
@_meta_yo = true | |
alias_method :"#{method} old", method | |
define_method(method) do |*args| | |
puts "--> Calling #{method} with #{args.inspect}" | |
out = send(:"#{method} old", *args) | |
puts "<-- Returned #{out.inspect}" |
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
#### VARIABLES #### | |
# network | |
localnet = "10.0.0.0/24" | |
externip = "**.***.***.**" | |
if = "le0" | |
# services | |
tcp_in = "{ ssh, www }" | |
tcp_out = "{ ssh, www, auth, ftp, ftp-data }" | |
udp_s = "{ domain, ntp }" |