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 Foundation | |
| protocol Alphabet { | |
| associatedtype AlphabetCharacter: Comparable, Hashable | |
| func allCharacters() -> [AlphabetCharacter] | |
| init() |
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> | |
| #define NNodes 22 | |
| int Sum, Min, x, y, n, m, c, f[NNodes], st[NNodes], a[NNodes][NNodes]; | |
| void back(int k) { | |
| if(k == n + 1) { | |
| if(a[st[n]][st[1]] > 0) { | |
| Sum += a[st[n]][st[1]]; |
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
| let a = "2" |
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
| prop_regex = /@property\s*\([^\)]+\)\s+(?<type>\w+(\s*\*)?)\s*(?<name>\w+)/ | |
| code = `pbpaste` | |
| property_list = [] | |
| code.scan(prop_regex) do |match| | |
| type, name = match |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>A pure CSS parallax demo by Keith Clark</title> | |
| <style> | |
| /* Parallax base styles |
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 'socket' | |
| MAX_DIST = 120 | |
| @s = TCPSocket.new 'localhost', 7000 | |
| def get_number_of_rods | |
| @s.puts "GET_NUMBER" | |
| @s.gets.split.map(&:to_i) | |
| end |
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
| var n = 12 | |
| var bile = [3, 4, 6, 7, 8, 9, 2, 1, 10, 18, 22, 26] | |
| var extrase = [2, 9, 3, 4, 22, 6] | |
| extrase.sort(<) | |
| bile.sort(<) | |
| var minBall = extrase[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
| class A { | |
| } | |
| class B { | |
| } | |
| var factory: [String:()->(AnyObject)] = [ | |
| "A" : { |
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 'watir' | |
| require 'watir-webdriver' | |
| require 'nokogiri' | |
| # require 'os' | |
| require 'json' | |
| query_string = ARGV[0] | |
| # if OS.linux? | |
| # # no more ui |
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 filterX(image, region): | |
| return 1.0 | |
| def filterY(image, region): | |
| return 2.0 | |
| _filters = { | |
| "principalComponentX" : filterX, | |
| "principalComponentY" : filterY |
NewerOlder