This file contains hidden or 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
| Private Sub MainWindow_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load | |
| Text = Application.ProductName & " version " & Application.ProductVersion | |
| Config.init() | |
| enterView(Pages.Item("home")) | |
| End Sub |
This file contains hidden or 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
| {% macro render_field(field) -%} | |
| {% set with_label = kwargs.pop('with_label', False) %} | |
| {% set placeholder = '' %} | |
| {% if not with_label %} | |
| {% set placeholder = field.label.text %} | |
| {% endif %} | |
| <div class="form-group {% if field.errors %}error{% endif %}"> | |
| {% if with_label %} | |
| <label for="{{ field.id }}" class="control-label"> | |
| {{ field.label.text }}{% if field.flags.required %} *{% endif %}: |
This file contains hidden or 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
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> | |
| <span class="sr-only">Toggle navigation</span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| </button> | |
| <a class="navbar-brand" href="{$url->blogLink()}"><img class="img-responsive" src="{$url->getTemplateFile("img/pythonthusiast.png")}"></img></a> | |
| </div> |
This file contains hidden or 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
| __author__ = 'ekowibowo' | |
| import os | |
| import redis | |
| from flask import jsonify, Flask | |
| import json | |
| REDIS_HOST = os.getenv('SS_ABTEST_REDIS_HOST', '192.168.59.103') | |
| hkey = 'redisobject:whyweneedit' | |
| r = redis.StrictRedis(host=REDIS_HOST) |
This file contains hidden or 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
| __author__ = 'ekowibowo' | |
| import json | |
| import os | |
| import redis | |
| REDIS_HOST = os.getenv('SS_ABTEST_REDIS_HOST', '192.168.59.103') | |
| r = redis.StrictRedis(host=REDIS_HOST) | |
| for k in r.keys('abtest:experiments:*'): | |
| r.delete(k) |
This file contains hidden or 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
| print 'Hello world' |
This file contains hidden or 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
| class HelloWorld{ | |
| public static void main(string arg){ | |
| System.out.println("Hello world!"); | |
| } | |
| } |
This file contains hidden or 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 gclient | |
| from_ = '[email protected]' | |
| to_ = '[email protected]' | |
| title = 'Python vs Ruby vs Go' | |
| body = 'Python FTW!' | |
| message = gclient.create_message(from_, to_, title, body) | |
| gclient.send(message) |
This file contains hidden or 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
| print("Let's calculate triangles area using function") | |
| def calculate_triangle(bottom, height): | |
| return bottom * height / 2 | |
| tri1 = calculate_triangle(5, 10) | |
| tri2 = calculate_triangle(6,8) | |
| tri3 = calculate_triangle(10, 7) | |
| print(tri1, tri2, tri3) |
This file contains hidden or 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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDvCaLC5PmKmm1kqFf0DMiPQ6KbY3yZi4qrtUsCluPNSer75mCwjZy0QQWF17CpQEXFlGe9kaRzyqZGeiMTZDblIuBPc0Y/M/eDNxVDsA9sKiDEb3rUd6mElbHgK0SecoLBFE29aMuqYwp/YRwG80vsRoMvWlJcuON2XbwiWeXrPnyqAIKzBjnIb0I7pSQkfFcTVwzal2q7wUEbG0+wezURuTB2xGZnYHll1GBRmNumkGC8tsg+2EXIwMYrfErhhD/LBoJ695gU4cYv79Fdo/dx0eI4lZWsqgXUOUfxHVvFxsFncHWEleWerQEzY14rEA+HmK9gOXwMlzJFBRKIZxX eko@eko-VirtualBox |
OlderNewer