Based on @VisioN's profile signature in StackOverflow, turned into a configurator that anyone can use.
View FizzBuzz.py
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
# My First Python program | |
# Based on this spec: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html | |
def fbFilter(n): return n % 5 == 0 or n % 3 == 0 | |
def fbPrinter(n): | |
if n % 15 == 0: | |
return 'FizzBuzz' | |
elif n % 5 == 0: | |
return 'Buzz' |
View FizzBuzzAI.py
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
# My Second Python program | |
# Based on this spec: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html | |
import time | |
import random | |
def fbFilter(n): return n % 5 == 0 or n % 3 == 0 | |
def fbTranslator(n): | |
output = '{0}'.format(n) |
View FizzBuzz-Clean.py
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
# My Third Python program | |
# Based on this spec: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html | |
import time | |
import random | |
def fbPrinter(simulator, translator, i): | |
time.sleep(simulator(i)) | |
print(translator(i)) |
View q12944362-programmatic-binding-of-accelerators-in-wxpython.py
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 wx | |
class MyForm(wx.Frame): | |
#---------------------------------------------------------------------- | |
def __init__(self): | |
wx.Frame.__init__(self, None, wx.ID_ANY, "Programmatic binding of accelerators in wxPython", size=(450,150)) | |
# Add a panel so it looks the correct on all platforms | |
panel = wx.Panel(self, wx.ID_ANY) |
View q13421874.py
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
list_of_lists=[] | |
category=0 | |
list_of_lists.append([]) | |
f = open("list.txt",'r') | |
for line in f.readlines(): | |
item = line.strip('\n') # no white spaces in the list | |
if len(item) > 0: | |
#add to current category |
View build-bootstrap.bat
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
@ECHO OFF | |
REM | |
REM 01.17.2013, Requires Node.js, JSHint, Recess, and UglifyJS (installed in the path) | |
REM Run this command after node.js is installed | |
REM npm install -g less jshint recess uglify-js | |
REM | |
MKDIR bootstrap\img | |
MKDIR bootstrap\css | |
MKDIR bootstrap\js |
View q14842610.py
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
from math import pow | |
from cmath import sqrt | |
print "Quadradtic Formula Calculator!!!" | |
print "Ax²+Bx+C=0" | |
print "This solve for x" | |
a = input("Please, enter value for A: ") | |
b = input("Please, enter value for B: ") | |
c = input("Please, enter value for C: ") |
View Program.cs
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; | |
namespace so15415825 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var badguys = new List<Badguy>() |
View PrimeFactorsOf.java
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 java.util.ArrayList; | |
import java.util.List; | |
public class PrimeFactorsOf { | |
public static void main(String ... args) { | |
System.out.println(primeFactorsOf(19252389595L)); | |
} | |
static List<Long> primeFactorsOf(long val) { | |
long n = val; |
OlderNewer