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
""" Automatically write Jflex rules for a dictionary of tokens and their regex patterns | |
""" | |
tokens = { | |
"IF": "if", | |
"THEN": "then", | |
"ELSE": "else", | |
"RETURN": "return", | |
"VOID": "void", | |
"WHILE": "while", | |
"ADD": "+", |
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
Traceback (most recent call last): | |
File "/usr/lib/pitivi/python/pitivi/dialogs/startupwizard.py", line 96, in _newProjectCb | |
self.app.project_manager.newBlankProject() | |
File "/usr/lib/pitivi/python/pitivi/project.py", line 470, in newBlankProject | |
project.createTimeline() | |
File "/usr/lib/pitivi/python/pitivi/project.py", line 936, in createTimeline | |
self.pipeline = Pipeline() | |
File "/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 531, in __init__ | |
SimplePipeline.__init__(self, self) | |
File "/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 186, in __init__ |
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 b34b22d28c231c6d9739146e026725422325e1ad Mon Sep 17 00:00:00 2001 | |
From: David Hayes <evidex@freeshell.de> | |
Date: Mon, 27 Jul 2015 22:23:47 +0100 | |
Subject: [PATCH] Add libvirt.sound_driver option | |
--- | |
nova/virt/libvirt/config.py | 16 ++++++++++++++++ | |
nova/virt/libvirt/driver.py | 12 ++++++++++++ | |
2 files changed, 28 insertions(+) |
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
Client | |
------ | |
@@exported_resource { 'my_resource': | |
foo => 'bar', | |
} | |
Master | |
------ |
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 remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
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
------ foo.pp ------- | |
class foo ( | |
$some_string = $::foo::params::some_string_default, | |
) inherits foo::params { | |
validate_string($some_string) | |
include foo::bar | |
} | |
------ bar.pp ------- | |
class foo::bar { |
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
[Slasher, [TOURN] [A] ] | |
Damage Control II | |
Overdrive Injector System II | |
1MN Afterburner II | |
Medium F-S9 Regolith Compact Shield Extender | |
Warp Scrambler II | |
Stasis Webifier II |
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
[Maulus, [TOURN] [B]] | |
Small Ancillary Armor Repairer | |
Damage Control II | |
200mm Rolled Tungsten Compact Plates | |
5MN Quad LiF Restrained Microwarpdrive | |
Remote Sensor Dampener II, Targeting Range Dampening Script | |
Remote Sensor Dampener II, Targeting Range Dampening Script | |
Remote Sensor Dampener II, Targeting Range Dampening Script |
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
import org.jenkins.plugins.lockableresources.* | |
def manager = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class) | |
json = "[" | |
manager.resources.each { lock -> | |
reservedBy = lock.reservedBy ?: "" | |
json += """ | |
{ |
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
import org.jenkins.plugins.lockableresources.* | |
import groovy.json.JsonSlurperClassic | |
def LOCK_FILE_PATH = 'locks/locks.json' | |
def manager = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class) | |
println "Found \${manager.resources.size()} locks" | |
println "Reading lock json file" | |
def locks = new JsonSlurperClassic().parseText(readFile(file: LOCK_FILE_PATH)) |
OlderNewer