- Finding prime numbers with a silly algorithm
- Also testing custom tags while we are at it
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace System.Linq | |
{ | |
public static class LuceneNetExtensions | |
{ | |
/// <summary> |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>Binary Clock in Unicode</title> | |
<style type='text/css'> | |
body { | |
margin: 0; | |
background-color: #000000; | |
width: 100%; |
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
vowels = set('aeiouy') | |
with open('TWL06.txt') as file: | |
for line in file: | |
word = line.strip().lower() | |
letters = set(word) | |
if vowels <= letters: | |
print word |
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
/* | |
* Javascript Humane Dates | |
* Copyright (c) 2008 Dean Landolt (deanlandolt.com) | |
* Re-write by Zach Leatherman (zachleat.com) | |
*/ | |
/* Adopted from the John Resig's pretty.js | |
* at http://ejohn.org/blog/javascript-pretty-date | |
* and henrah's proposed modification | |
* at http://ejohn.org/blog/javascript-pretty-date/#comment-297458 | |
*/ |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Test Unicod and the ruby-Tag</title> | |
</head> | |
<body> | |
<article> |
Trying to implement a YouTube example
A plugin for the Geany editor.
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
active_jobs=() | |
max_jobs=4 | |
refresh_jobs() { | |
local pid | |
local actual_jobs=() | |
for pid in "${active_jobs[@]}"; do | |
kill -0 "$pid" 2> /dev/null \ | |
&& actual_jobs+=("$pid") \ | |
|| wait "$pid" # avoid zombie |
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 addTableRow(jQtable){ | |
jQtable.each(function(){ | |
var $table = $(this); | |
// Number of td's in the last table row | |
var n = $('tr:last td', this).length; | |
var tds = '<tr>'; | |
for(var i = 0; i < n; i++){ | |
tds += '<td> </td>'; | |
} | |
tds += '</tr>'; |
OlderNewer