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
def test_status_of_first_build(self): | |
print('la'*42) | |
build = self.project2.builds.create(version='1') | |
print('Build created!!!') | |
print('build.status.baseline %s' % build.status.baseline) | |
print('ProjectStatus.baseline %s' % ProjectStatus.baseline) | |
status = ProjectStatus.create_or_update(build) | |
print('status %s (%d)' % (status, status.id)) | |
print('build %s (%d)' % (build, build.id)) |
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
#!/bin/bash | |
set -eu | |
export DATABASE='ENGINE=django.db.backends.sqlite3:NAME=syzkaller_db.sqlite3' | |
echo "Setting testing squad-db" | |
squad-admin migrate 2>&1 > /dev/null | |
cat << SCRIPT | squad-admin shell |
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
[127|0]terraform(move-to-sqs *%) $ ENV=staging ./terraform plan | |
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
aws_sns_topic.qa_reports_cloudwatch_notifications: Refreshing state... (ID: arn:aws:sns:us-east-1:495570029050:staging_qa_reports_cloudwatch_notifications) | |
aws_lb_target_group.qa-reports-tg: Refreshing state... (ID: arn:aws:elasticloadbalancing:us-east-1:...staging-qa-reports-tg/66d3228ab651edce) | |
aws_key_pair.auth: Refreshing state... (ID: qa-reports-staging) | |
aws_acm_certificate.acm-cert: Refreshing state... (ID: arn:aws:acm:us-east-1:495570029050:cert...e/2adeddd0-e754-44e8-8b1b-dcf5e77ee94b) | |
aws_sqs_queue.qa_reports_queue[7]: Refreshing state... (ID: https://sqs.us-east-1.amazonaws.com/495570029050/staging_core_reporting) |
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
diff --git a/package-lock.json b/package-lock.json | |
index 2fc8f27..996711a 100644 | |
--- a/package-lock.json | |
+++ b/package-lock.json | |
@@ -1,6 +1,8 @@ | |
{ | |
- "requires": true, | |
+ "name": "squad-tests", | |
+ "version": "1.0.0", | |
"lockfileVersion": 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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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
// g++ btree.cpp | |
#include "rapidxml.hpp" | |
#include <iostream> | |
#include <vector> | |
#include <fstream> | |
using namespace std; | |
using namespace rapidxml; |
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
#include <iostream> | |
#include <vector> | |
// Macro to reduce code | |
#define add(n) children.push_back(n) | |
using namespace std; | |
class Node | |
{ |
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
Number of LOC per SATE | |
SATE 2008: | |
Naim (C) 23,210 | |
Nagios (C) 65,133 | |
Lighttpd (C) 38,306 | |
OpenNMS (Java) 131,507 | |
MvnForum (Java) 128,784 | |
DSpace (Java) 53,847 | |
Total = 440787 |
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
1 10 2 1 | |
5 6 4 2 | |
2 10 5 1 | |
9 4 2 7 | |
8 8 4 8 | |
6 5 5 4 | |
5 2 3 10 | |
3 5 1 9 | |
2 6 2 4 | |
1 7 4 4 |
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
// This was based on problem 1077: infix to postfix form | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define PRI(c) (c == '*' ? 1 : (c == '(' ? -1 : 0)) | |
#define push iStack++, opStack[iStack].c = infix[i], opStack[iStack].pri = PRI(infix[i]) | |
// Encapsulate an element |
NewerOlder