This is a list of controls that can be placed into an IAM policy document. All content comes from AWS documentation.
Something wrong? Try looking here.
Table of Contents generated with DocToc
| import mido | |
| def translate_midi_to_custom_format(midi_file): | |
| # Load the MIDI file | |
| mid = mido.MidiFile(midi_file) | |
| # Get the format and division from the MIDI file | |
| format = mid.type | |
| division = mid.ticks_per_beat |
| module Base64Lazy | |
| def decode64_in_chunks(file) | |
| Base64Lazy::Helpers.chunk_file(file) do |chunk| | |
| # Convert each character to it's 6 bit representation of it's index in MAPPING | |
| chunks_6_bit = chunk.map { |char| Base64Lazy::Helpers.to_n_bit(char, 6) } | |
| # Join each 6 bits into a 24 bit representation, then splits back into 8 bit representations; | |
| # Omits the last chunk as it doesn't meet 8 bits | |
| chunks_8_bit = chunks_6_bit.join("").scan(/.{8}/) |
| import _ from "lodash" | |
| // Small date util lib to fill those missing features of moment | |
| // TL;DR, Native Date sucks at adding dates | |
| // var d = new Date("10/31/2011"); | |
| // d.setMonth(d.getMonth() + 1); | |
| // console.log(d); => Thu Dec 01 2011 00:00:00 GMT-0800 (PST) | |
| const _modifier = { | |
| months: (startDate, amount) => _.range() | |
| } |
| !#/bin/bash | |
| ps -o pid $(xprop -id $(xprop -root -f _NET_ACTIVE_WINDOW 0x " \$0\\n" _NET_ACTIVE_WINDOW | awk "{print \$2}") -f _NET_WM_PID 0c " \$0\\n" _NET_WM_PID | awk "{print \$2}") | grep -o -P ".*?(\\d+)" | xargs kill |
| let n = (a, i, b) => Math.log(i/b) / Math.log(a) | |
| function findNote(freq, base=440.00) { | |
| let notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"] | |
| let octave = 4 | |
| const a = Math.pow(2, 1 / 12) | |
| // Our base of A4 | |
| const b = base |
| def s_iter(min, max): | |
| def iter(max, current): | |
| if not current > max: | |
| return current | |
| # End of iteration | |
| return None | |
| return iter(max, min) |
| module main | |
| let print sol = | |
| printfn "%i" sol | |
| let solve problem = | |
| problem |> print | |
| let fibonacci = | |
| Seq.unfold | |
| (fun (current, next) -> Some(current, (next, current + next))) |