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
| <h3><%= object.title %></h3> | |
| <%= yieldall :index => 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
| require 'bundler' | |
| Bundler.require(:default) | |
| # Currency | |
| # | |
| # A transaction currency. | |
| # | |
| class Currency |
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
| #!/usr/bin/env ruby | |
| # usage: /path/to/script.rb CANVAS_API_TOKEN COURSE_ID [HOST] | |
| # - | |
| # the script should output "true" and "false" on two consecutive lines | |
| # (make sure you `chmod +x` the script before attempting to run it) | |
| require 'net/http' | |
| require 'uri' | |
| require 'json' |
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
| s:set_namespace("ar") | |
| -- "Pending: test.lua @ 12 \n description | |
| s:set("output.pending", "عالِق") | |
| s:set("output.failure", "فَشَل") | |
| s:set("output.failure", "نَجاح") | |
| s:set("output.pending_plural", "عالِق") | |
| s:set("output.failure_plural", "إخْفاقات") | |
| s:set("output.success_plural", "نَجاحات") |
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
| <karazeh> | |
| <!-- the version tag isn't used, it's there for the developer only --> | |
| <release version="0.1.0"> | |
| <!-- a text file of change list to be optionally downloaded and displayed to the user --> | |
| <meta name="changelist" value="http://localhost:9333/patches/changelist/0.1.0.txt" /> | |
| <!-- whether the patch is archived or not --> | |
| <meta name="archived" value="false" /> | |
| <!-- URI to the patch archive (tarball, zip, etc.) --> | |
| <meta name="archive-url" value="" /> |
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
| <karazeh> | |
| <!-- | |
| <identity></identity> | |
| These entries mark the files that will be used to validate | |
| the application's integrity; the accumulative checksum | |
| of all the files listed will be used to identify the | |
| application's current version. | |
| --> |
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
| #include <stdio.h> | |
| #include <malloc.h> | |
| #include <string.h> | |
| int is_ws(char c) { | |
| return c == ' '; | |
| } | |
| int trim(const char* src, char** dst) { | |
| if (strlen(src) == 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
| function Graph() { | |
| self = this; | |
| this.nodes = []; | |
| this.edges = []; | |
| this.levels = []; | |
| this.step = { level: -1, x: 0, y: 0 }; | |
| this.root = null; | |
| this.last_path = 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 fetch(link, level, options = {}) | |
| raise RuntimeError, 'HTTP redirect too deep' if level == 0 | |
| buf = OpenURI::Buffer.new | |
| uri = URI.parse(link) | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| response = nil | |
| http.start { | |
| req = Net::HTTP::Get.new(uri.request_uri) |
NewerOlder