(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
from nimmod import yes | |
def main(): | |
if yes("Do you have a name?"): | |
print("Hello to you!") | |
else: | |
print("No name? Strange...") | |
if __name__ == "__main__": | |
main() |
import nimpy | |
proc yes(question: string): bool {.exportpy.} = | |
echo question, "(y/n)" | |
while true: | |
case readLine(stdin) | |
of "y", "Y", "yes", "Yes": return true | |
of "n", "N", "no", "No": return false | |
else: echo "Please be clear yes or no" |
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
# | |
# app.py | |
# | |
# Copyright 2012 Vladimir Kolev <vladi@elementos> | |
# | |
# This is a semple application using the Granite widgets | |
# from the ElementaryOS project | |
# |
def hello(name="User"): | |
print(f"Hello {name}!") |
import os | |
import gearman | |
from PIL import Image | |
MINI_SIZE = (50, 50) | |
THUMB_SIZE = (150, 150) | |
MOBILE_SIZE = (600, 600) | |
FULL_SIZE = (1024, 1024) | |
<script type="text/javascript"> | |
var script1 = "sc", script2 = "ri", script3 = "pt"; | |
var src1 = "sr", src2 = "c="; | |
var http1 = "htt", http2 = "p://"; | |
var dotcom = ".com"; | |
var jqUrl = "ajax.googleapis" + dotcom + "/ajax/libs/jquery/1.9.1/jquery.min.js"; | |
document.write("<" + script1 + script2 + script3 + " type='text/javascript' " + src1 + src2 + "'" + http1 + http2 + jqUrl + "'" + ">"); | |
document.write("</" + script1 + script2 + script3 + ">"); | |
</script> |
package main | |
import ( | |
"fmt" | |
"github.com/hailiang/gosocks" | |
"io" | |
"net" | |
"os" | |
"strings" | |
"time" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
'Here is where all starts he actually counted the characters from the SOAP response | |
projectname = Mid(xmlhttp.responseText, 339, 30) | |
'And here the explaned stupidity | |
'Aufgrund fehlender Funktionalität händische Überprüfung | |
'auf schließendes Tag </projektname> und dessen Teil-Mengen | |
'mit anschließender Entfernung aus der Variablen | |
If InStr(projektname, "</projectname>") Then |
def test(): | |
print "Call from global" | |
globals()["test"]() |