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
| //Kapx Events | |
| //Events that the users could register to: | |
| a = [ | |
| 'user_registered', | |
| 'quiz_graded', | |
| 'challenge_exam_graded', | |
| 'access_to_course', | |
| 'course_registration', |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace huffman | |
| { | |
| public class Huffman | |
| { | |
| public Huffman () |
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
| using System; | |
| namespace PeanoNumbers | |
| { | |
| public class PeanoNumber | |
| { | |
| private PeanoNumber _base; | |
| public PeanoNumber ():this(null) | |
| { |
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
| def clone_entity_ndb(e, **extra_args): | |
| """use Populate method | |
| """ | |
| pass | |
| def clone_entity_db(e, **extra_args): | |
| """Clones an entity, adding or overriding constructor attributes. | |
| The cloned entity will have exactly the same property values as the original | |
| entity, except where overridden. By default it will have no parent entity or |
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
| params['completed_percent'] = int(round((float(completed_min) / float(total_min)) * 100)) if total_min else 0 |
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
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
| <link rel="import" href="../core-input/core-input.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :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
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
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 sqlite3 | |
| connection = sqlite3.connect('/Users/javi830810/Documents/etecsa.db') | |
| def find_by_name(query): | |
| where_clause = [ | |
| ('name', 'like', "'" + query + "%'") | |
| ] | |
| return run_query(where_clause) |
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
| public IPipeline GetPipelineForMessage(EventMessage message) | |
| { | |
| return new LinearPipeline () { | |
| Actions = new List<IAction> () { | |
| new JF.JotFormAPIAction () { }, | |
| new WebhookPublishAction () { | |
| MessageType = "JotFormFullMessage", | |
| Bus = this.container.Resolve<IBus> (), | |
| WebhookStore = container.Resolve<IWebhookStore> (), | |
| } |
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
| from models import Palette | |
| palettes = [] | |
| for x in Palette.query().fetch(): | |
| palettes.append({ | |
| 'name': x.name, | |
| 'bg_color':x.main_bg_color, | |
| 'color': x.main_color | |
| }) |
OlderNewer