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
/* | |
* Copyright (C) 2011 by Anton Ivanov [email protected] | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in |
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 software can be used solely in educational purposes, all other uses are prohibited. | |
* No derivative works are allowed. | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
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
<html> | |
<header> | |
<style type="text/css"> | |
body | |
{ | |
background-color:#FAEBD7; | |
} | |
button | |
{ | |
width:70; |
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
function simpleSearch(text, str) { | |
var matches = []; | |
for (var i = 0; i <= text.length; i++) { | |
if (matchesAtIndex(i, text, str)) { | |
matches.push(i); | |
} | |
} | |
return matches; | |
} |
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
# | |
# Automated skills advisor: based on the data available at careers.stackoverflow.com | |
# it generates the statistics which skills are most in demand and how they compare to | |
# what you know. | |
# | |
# Copyright (c) 2011 Anton Ivanov anton.al.ivanov(no spam)gmail.com | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
<html> | |
<head> | |
<style> | |
#loadingStatus.loading { | |
padding-left: 30px; | |
height: 40px; line-height: 40px; | |
background: no-repeat left transparent; | |
background-image: url("http://www.andrewdavidson.com/articles/spinning-wait-icons/wait30trans.gif"); | |
font-style: italic; | |
} |
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
package functional.examples; | |
import static fj.data.Array.array; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import fj.F; | |
import fj.data.Array; |
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
# | |
# Script that monitors new apartments that are available for rent and sends a notification | |
# in case something new shows up. The script can be scheduled to run, say, each 30 minutes. | |
# | |
# Copyright (c) 2011 Anton Ivanov anton.al.ivanov(no spam)gmail.com | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
# ruby java_test_explorer.rb selftest | |
# Test the library | |
# ruby java_test_explorer.rb /home/user/eclipse_workspace/TestJavaProject | |
# List all the JUnit test cases in the project TestJavaProject | |
require 'find' | |
$separator = "-" * 50 | |
def toCamelNotation(name) | |
words = name.split("_") |
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
require "test/unit" | |
def fromBinaryCodes(text) | |
text.split(" ").map{|symbol| symbol.to_i(2).chr}.join("") | |
end | |
def toBinaryCodes(text) | |
text.split(//).map{|symbol| symbol.ord.to_s(2)}.join(" ") | |
end | |
OlderNewer