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 "stylus" | |
module Middleman | |
module Renderers | |
# Sass renderer | |
module Stylus | |
# Setup extension | |
class << self | |
# Once registered | |
def registered(app) |
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
# _share.html.haml button | |
= form_tag(public_memo_path(@memo), :remote => true, :style => 'margin-bottom: 5px;') do | |
= submit_tag "Make #{@memo.public? ? 'private' : 'public'}", :id => "make_public_button", :class=>"simple #{@memo.public? ? 'redish' : 'blue'} floatright", :disable_with => "Changing status..." | |
# memo_controller.rb, public action | |
def public | |
@memo = Memo.find(params[:id]) | |
authorize! :share, @memo |
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
#ifndef LINKEDTABLE_H_INCLUDED | |
#define LINKEDTABLE_H_INCLUDED | |
//--- includes | |
#include <stdio.h> | |
#include <string.h> | |
#include <malloc.h> | |
#ifdef HAS_OGL | |
#include <GL\glew.h> |
NewerOlder