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
[user] | |
name = Zygimantas Gatelis | |
email = zygis.gg@gmail.com | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
ui = true | |
[core] |
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 color bash with git branch | |
GIT_PS1_SHOWDIRTYSTATE=true | |
PS1='\[\033[32m\]\u:\[\033[00m\]\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ ' | |
alias gnome-louncher="gnome-desktop-item-edit ~/apps/ --create-new" |
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
# bind ctrl-a | |
set -g prefix C-a | |
# reload configuration | |
#bind r source-file ~/.tmux.conf; display ".tmux.conf Reloaded." | |
# windows numbering starts from 1 instead of zero | |
set -g base-index 1 | |
# same with panels | |
set -g pane-base-index 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
import processing.core.*; | |
public class JiyuuRakka extends PApplet{ | |
Ball b1; | |
public void setup(){ | |
size(200, 200); | |
b1 = new Ball(random(width), random(0,20)); | |
b1.setHeight(height); | |
} |
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
@Override | |
public Customs clone() throws CloneNotSupportedException { | |
Customs result = (Customs) super.clone(); | |
/* clone all officers */ | |
result.officers = (ArrayList<CustomsOfficer>) officers.clone(); | |
for (CustomsOfficer o : result.officers) { | |
o = o.clone(); | |
} | |
/* clone all inspections */ | |
result.inspections = (ArrayList<Inspection>) inspections.clone(); |
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
public static void AppendQuestions(string question, | |
string answer, string case1, string case2, string difficulty) | |
{ | |
try { | |
XmlDocument XmlDoc = new XmlDocument(); | |
XmlDoc.Load(XML_FILE_PATH); | |
XmlElement newElem = XmlDoc.CreateElement("task"); | |
XmlAttribute difficultyAttribute = XmlDoc.CreateAttribute("stage"); |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import unittest | |
from tests.test_suite import TestSuite | |
def main(): | |
suite = TestSuite() |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import unittest | |
class Task_2_TestSuite(unittest.TestSuite): | |
def add(self, test_case): | |
tests = unittest.defaultTestLoader.loadTestsFromTestCase(test_case) |
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 spynner | |
browser = spynner.Browser(debug_level=spynner.INFO) | |
browser.create_webview() | |
browser.show() | |
browser.load("https://www.imleagues.com/Login.aspx") | |
browser.runjs('$("[schid=e002364c7b414cfd8195be06fb7707ba]").click()'); | |
browser.wait(10.0) |
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 main(): | |
pass | |
if __name__ == "__main__": | |
main() |
OlderNewer