This file contains hidden or 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
package org.enoir.droolstest; | |
public class Message { | |
private String message; | |
public static String GOODBYE = "1" ; | |
public static String HELLO="0"; | |
private String status; | |
public String getMessage() { | |
return message; |
This file contains hidden or 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
package drools | |
import org.enoir.droolstest.Message | |
rule "Hello World" | |
when | |
m : Message( status == Message.HELLO, myMessage : message ) | |
then | |
System.out.println( myMessage ); | |
m.setMessage( "Goodbye world" ); |
This file contains hidden or 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
dependencies { | |
compile group: 'org.drools', name: 'drools-core', version: '6.2.0.Final' | |
compile group: 'org.drools', name: 'drools-compiler', version: '6.2.0.Final' | |
} |
This file contains hidden or 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
repositories { | |
mavenCentral() | |
maven { url "https://repository.jboss.org/nexus/content/groups/public/" } | |
} |
This file contains hidden or 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
pragma solidity ^0.4.2; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
Proposal vote; | |
address delegate; | |
} |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
BaseClass bc = new ChlidClass(); | |
Console.ReadLine(); | |
} | |
} | |
public class BaseClass |
This file contains hidden or 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 telebot | |
from telebot import types | |
import logging | |
TOKEN = 'TOKEN' | |
bot = telebot.TeleBot(TOKEN) | |
@bot.message_handler(commands=['start', 'help']) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import telebot | |
from telebot import types | |
API_TOKEN = '<api_token>' | |
bot = telebot.TeleBot(API_TOKEN) | |
# Handle '/start' and '/help' | |
@bot.message_handler(commands=['help', 'start']) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import commands | |
import datetime | |
import time | |
import os | |
DATABASE_NAME = 'mattermost' | |
BACKUP_FOLDER = '/home/sdduser/backup/backupdata' | |
HISTORY_FOLDER = '/home/sdduser/backup/historydata' |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
type test_struct struct { |