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
| res = File | |
| .open("day2").each_line | |
| .map {|l| l.strip.split } | |
| .inject({ hori: 0 , depth: 0, aim:0}) do |acc, command| | |
| n = command[1].to_i | |
| case command[0] | |
| when "up" | |
| acc[:aim] -= n | |
| when "down" | |
| acc[:aim] += n |
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
| SELECT | |
| uuid, | |
| replace(replace(encode(decode(replace(uuid, '-', ''), 'hex'),'base64'),'/',','),'=','') | |
| FROM (SELECT gen_random_uuid()::text as uuid) d |
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
| ; ModuleID = 'sjit' | |
| target datalayout = "E-p:64:64:64-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64" | |
| target triple = "x86_64-unknown-linux-gnu" | |
| declare i32* @evalparamexpr_wrapper(i32, i32) | |
| declare double @sin_optimized(double) | |
| declare double @pi_optimized() |
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
| define void @loop_ptr_17906208([10 x i32*]* %params_vec) { | |
| entry: | |
| %0 = getelementptr [10 x i32*]* %params_vec, i32 0, i32 0 | |
| %1 = bitcast i32** %0 to double** | |
| %temp_1 = load double** %1 | |
| %2 = getelementptr [10 x i32*]* %params_vec, i32 0, i32 1 | |
| %3 = bitcast i32** %2 to double** | |
| %d = load double** %3 | |
| %4 = getelementptr [10 x i32*]* %params_vec, i32 0, i32 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
| import java.util.List ; | |
| import java.util.ArrayList; | |
| class Examples { | |
| public static void foo (int i,char c) {} | |
| public static void m(char c, int i) {} | |
| public static void m(int c, char i) {} |