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
#!/bin/bash | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
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
#!/bin/bash | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
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
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
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 * as polished from 'polished' | |
import range from 'lodash.range' | |
const unit = (value, type) => `${value}${type}` | |
const relative = value => unit(value, 'em') | |
const absolute = value => unit(value, 'rem') | |
const lighten = (val, percent) => polished.lighten(percent / 100, val) | |
const darken = (val, percent) => polished.darken(percent / 100, val) | |
const saturate = (val, percent) => polished.saturate(percent / 100, val) | |
const rgba = (r, g, b, a) => `rgba(${r}, ${g}, ${b}, ${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
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t) |
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
# normal mode | |
'atom-text-editor.vim-mode-plus.normal-mode': | |
', a': 'editor:toggle-line-comments' | |
', e v': 'settings-view:install-packager-and-theme' | |
':': 'vim-mode-plus-ex-mode:open' | |
';': 'vim-mode-plus-ex-mode:open' | |
'!': 'vim-mode-plus-ex-mode:toggle-setting' | |
'g f': 'open-this:here' |
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
package myHashTable; | |
import java.util.Arrays; | |
public class assignment { | |
public static void main(String[] args) { | |
// keys to add | |
int[] keys = {517, 492, 27, 116, 132, 30, 552, 725, 627, 192}; | |
System.out.println("Keys to Add: " + Arrays.toString(keys)); | |
// HASH TABLE PROPERTIES |
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
package myHashTable; | |
import java.util.Arrays; | |
public class myHash { | |
private int capacity; | |
private double max_load_factor; | |
private int resize_factor = 2; | |
private int search_limit = 0; | |
private int probing_type; |
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
. |
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
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t) |