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
odoo.define('openerp_enterprise.BootstrapDialog', function (require) { | |
'use strict'; | |
const { | |
Component, | |
hooks: { useRef }, | |
misc: { Portal }, | |
} = owl; | |
class BootstrapDialog extends Component { |
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 os | |
import sys | |
import time | |
def split_files(path): | |
path_dir = os.path.join(os.path.dirname(path), 'extracted_' + time.asctime()) | |
if not os.path.exists(path_dir): | |
os.mkdir(path_dir) |
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
quants = env['stock.quant'].search([]) | |
move_line_ids = [] | |
warning = '' | |
for quant in quants: | |
move_lines = env["stock.move.line"].search([ | |
('product_id', '=', quant.product_id.id), | |
('location_id', '=', quant.location_id.id), | |
('lot_id', '=', quant.lot_id.id), | |
('package_id', '=', quant.package_id.id), | |
('owner_id', '=', quant.owner_id.id), |
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
quants = env['stock.quant'].search([]) | |
move_line_ids = [] | |
warning = '' | |
for quant in quants: | |
move_lines = env["stock.move.line"].search([ | |
('product_id', '=', quant.product_id.id), | |
('location_id', '=', quant.location_id.id), | |
('lot_id', '=', quant.lot_id.id), | |
('package_id', '=', quant.package_id.id), |
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
#!/usr/bin/env python3 | |
import os | |
import re | |
import subprocess as sp | |
import sys | |
def find_git_folder(): | |
parts = os.getcwd().split(os.path.sep) | |
parts[0] = '/' # instead of '' |
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
#include "tpunit++.hpp" | |
#include "fakeit.hpp" | |
using namespace fakeit; | |
struct MyTests : tpunit::TestFixture { | |
struct Wrapper { | |
virtual void open_file(const std::string &filename) const = 0; | |
}; |
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
using GI; | |
public void main(string[] args) | |
{ | |
try { | |
string name = "mymodule"; | |
Repository repository = Repository.get_default(); | |
unowned Typelib module = repository.require_private( | |
Path.get_dirname(args[0]), |
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
#!/bin/sh | |
set -xe | |
master_hostname=bumblebee.htkc.org | |
curl -L https://bootstrap.saltstack.com -o install_salt.sh | |
sudo sh install_salt.sh | |
sudo sh -c "echo 'master: $master_hostname' > /etc/salt/minion" | |
sudo service salt-minion restart | |
echo -n "\x1b[32m" |
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
<!DOCTYPE html><html><head><title>What colour is it?</title><meta charset="UTF-8" ><link href='http://fonts.googleapis.com/css?family=Open+Sans:800,400,300' rel='stylesheet' type='text/css'> | |
<link rel="shortcut icon" href="http://scn9a.org/whatcolourisit/2.png"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1"> | |
<meta name="description" content="what colour is it?"/> | |
<meta property="og:title" content="What colour is it?" /> | |
<meta property='og:locale' content="en_GB"/> | |
<meta property='og:description' content="the time....... now in colour."/> | |
<meta property="og:type" content="Website" /> |
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; | |
import tools.Signal; | |
class Main | |
{ | |
public static function main():Void | |
{ | |
var isRunning:Bool = true; |
NewerOlder