Skip to content

Instantly share code, notes, and snippets.

View voldern's full-sized avatar

Espen Volden voldern

  • Espen Volden
  • Norway
View GitHub Profile
<?php
$header =
javelin_tag(
'h1',
array(
'class' => 'maniphest-task-group-header',
'sigil' => 'task-group',
'meta' => array(
'priority' => head($list)->getPriority(),
),
(font-lock-add-keywords
'js-mode `(("\\(function *\\)("
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "ƒ")
nil)))))
(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)))))
struct PSOutput
{
float4 Color: COLOR;
};
PSOutput psMain(void)
{
PSOutput Output;
Output.Color = float4(1, 0, 0, 0);
return Output;
Xli::Stream *shaderFile = fs->OpenFile("shader.cg", Xli::FileMode::FileModeRead);
Frontend4::DX10Program* prg = Frontend4::DX10Program::Load(device, shaderFile);
OBJS_STUDIO=\
Sequencer.o\
FramebufferBrowser.o\
GUILoader.o\
StudioGfx.o\
ProbeBrowser.o\
Tracker.o\
GUISaver.o\
Sync.o\
GUI/InputDialog.o\
<?php
/**
* Used to autoload aether classes
*
* @access public
* @return bool
*/
public static function autoLoad($class) {
if (class_exists($class, false))
return true;
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
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}"
#### 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 }"