[ Launch: FSS canvas example ] 6352027 by madprog[ Launch: FSS canvas example ] 5250737 by enjalot[ Launch: basic FSS canvas ] 5250708 by enjalot
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 | |
base=$1 | |
shift | |
git checkout $base | |
for commit in "$@"; do | |
git rebase -f --onto HEAD $commit~1 $commit~0 | |
if [ $? -ne 0 ]; then | |
echo "\x1b[31mFailed rebasing $commit onto HEAD.\nPlease resolve the conflicts and finish the rebasing.\nNon-zero exit will stop the process.\x1b[0m" | |
$SHELL | |
if [ $? -ne 0 ]; then |
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; |
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
#!/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
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
#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
#!/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
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
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), |
OlderNewer