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
S -> E | |
E -> E a | T | |
T -> T b | E c | d | |
eliminate left-recursion: | |
E -> T E' | |
E' -> a E' | ε | |
T -> d T' |
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 'indoctrinatr/tools/template_pack_configuration' | |
require 'indoctrinatr/tools/directory_helpers' | |
require 'indoctrinatr/tools/template_documentation_source_file' | |
require 'indoctrinatr/tools/default_values' | |
module Indoctrinatr | |
module Tools | |
class TemplateDocumentationContent | |
include DirectoryHelpers |
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
# , Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity | |
# rubocop:disable all, # fuck the police | |
def check_attributes # rubocop:disable Metrics/AbcSize, Metrics/BlockNesting # fuck the police | |
configuration = ConfigurationExtractor.new(template_pack_name).call | |
puts 'checking your attributes...' | |
# puts configuration.attributes_as_hashes_in_array | |
configuration.attributes_as_hashes_in_array.each_with_index do |attribute_hash, index| | |
if attribute_hash.key? 'name' | |
if attribute_hash['name'].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
module Indoctrinatr | |
module Tools | |
module TemplatePackHelpers # classes that use this model are required to have template_pack_name as instance variable | |
def path_name(template_pack_name) template_pack_name | |
Pathname.new(Dir.pwd).join template_pack_name | |
end | |
def assets_path template_pack_name | |
path_name(template_pack_name).join 'assets' | |
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
// to use on http://www.neues-deutschland.de | |
var paywallOptions = document.getElementsByClassName('Paywall-Option'); | |
paywallOptions[paywallOptions.length-1] // get last item "Ich beteilige mich schon regelmäßig" | |
.click(); | |
// taz.de | |
document.getElementsByClassName('tzi-close')[0].click(); |
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
// myShell.cpp : Defines the entry point for the console application. | |
// | |
// #include <unistd.h> | |
#include <string> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
using std::cin; | |
using std::cout; |
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 fieldnames_creator.pdf_exists? | |
include_fieldnames = true | |
else | |
include_fieldnames = if fieldnames_creator.call | |
# More user information and for testing | |
puts 'INFO: Example with field names has been automatically generated for the documentation' | |
true | |
else | |
puts 'ERROR: Example with field names could not be created and is not included in documentation' | |
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
/** | |
* Overwrite events plugin style | |
* to move the list dots into container | |
*/ | |
.ec3_list { | |
list-style-position: inside; | |
margin-left: 1%; | |
} |
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
= simple_form_for(@event, html: {multipart: true}) do |f| | |
%fieldset.inputs | |
%legend Basic information | |
= f.input :title | |
= f.input :subtitle | |
- @event.build_ticket unless @event.ticket | |
= f.simple_fields_for :ticket do |ticket| | |
= ticket.input :remote_ticket_id | |
= f.input :event_type, collection: Event::TYPES | |
= f.association :track, collection: @conference.tracks |
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
# license: MIT | |
require 'to_latex' | |
module Indoctrinatr | |
module Tools | |
class DirectoryHelpers | |
def initialize | |
@dirtree_lines = [] | |
end |
OlderNewer