This file contains 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
local M = {} | |
M.WinMove = function(command_key) | |
local curwin = vim.api.nvim_get_current_win() | |
vim.cmd(string.format("wincmd %s", command_key)) | |
if curwin == vim.api.nvim_get_current_win() then | |
if command_key:match("[jk]") then | |
vim.cmd("wincmd v") |
This file contains 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
" .vimrc / init.vim | |
" The following vim/neovim configuration works for both Vim and NeoVim | |
" ensure vim-plug is installed and then load it | |
call functions#PlugLoad() | |
call plug#begin('~/.config/nvim/plugged') | |
" General {{{ | |
" Abbreviations | |
abbr funciton function |
This file contains 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 isGreatThanTen(num) { | |
if (num > 10) { | |
return true | |
} | |
return false; | |
} |
This file contains 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
Performing ProcessImagesJob from DelayedJob(high_priority) with arguments: "GalleryImage", 69953, "image", ["small", "medium"] | |
GalleryImage Load (1.2ms) SELECT "gallery_images".* FROM "gallery_images" WHERE "gallery_images"."id" = $1 LIMIT 1 [["id", 69953]] | |
assets-funzing-dev.s3.amazonaws.com | |
443 | |
0 | |
1 | |
false | |
assets-funzing-dev.s3.amazonaws.com |
This file contains 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
8.8.8.8 10 ms 10 ms 9 ms 21 ms 48 ms 77 ms 10 ms 22 ms 10 ms 49 ms 26.60 | |
8.8.4.4 10 ms 10 ms 11 ms 9 ms 31 ms 172 ms 11 ms 38 ms 10 ms 10 ms 31.20 | |
cloudflare 10 ms 10 ms 11 ms 11 ms 17 ms 11 ms 10 ms 15 ms 11 ms 15 ms 12.10 | |
level3 15 ms 10 ms 10 ms 9 ms 11 ms 12 ms 11 ms 14 ms 10 ms 12 ms 11.40 | |
google 19 ms 9 ms 13 ms 28 ms 51 ms 68 ms 14 ms 22 ms 10 ms 29 ms 26.30 | |
quad9 11 ms 10 ms 16 ms 17 ms 10 ms 22 ms 21 ms 32 ms 20 ms 65 ms 22.40 | |
freenom 33 ms 47 ms 34 ms 31 ms 75 ms 93 ms 32 ms 49 ms 44 ms 62 ms 50.00 | |
opendns 10 ms 11 ms 22 ms 39 ms 11 ms 49 ms 10 ms 48 ms 10 ms 21 ms 23.10 | |
norton 13 ms 11 ms 14 ms 11 ms 12 ms 16 ms 11 ms 11 ms 11 ms 12 ms 12.20 | |
cleanbrowsing 18 ms 36 ms 24 ms 18 ms 18 ms 159 ms 18 m |
This file contains 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 csv | |
import urllib2 | |
import sys | |
import multiprocessing | |
with open("users.csv", 'r') as csvfile: | |
rows = [row for row in csv.reader(csvfile)] | |
csvfile.close() | |
def check(row): |
This file contains 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
CarrierWave.configure do |config| | |
if S3_SECRET && !Rails.env.test? | |
config.fog_provider = 'fog/aws' | |
config.fog_credentials = { | |
provider: 'AWS', | |
aws_access_key_id: S3_ACCESS_KEY, | |
aws_secret_access_key: S3_SECRET | |
} | |
config.fog_directory = S3_BUCKET | |
config.fog_public = true |
This file contains 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 checkObj(checkProp) { | |
// We check that the object has a propery | |
if(myObj.hasOwnProperty(checkProp)) { | |
return myObj[checkProp]; | |
} | |
// We did not find anything | |
return "Not Found"; | |
} |
This file contains 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
TODO: | |
[] Add a login screen. | |
We use Auth0 for login, so we need to integrate the lock into the app. | |
When you are logged out, you will see the login screen. Once you login, we | |
store your token in local storage and you can see the other parts of the | |
application. | |
This file contains 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
{ | |
"DBInstances": [ | |
{ | |
"PubliclyAccessible": false, | |
"MasterUsername": "mymasteruser", | |
"MonitoringInterval": 0, | |
"LicenseModel": "general-public-license", | |
"VpcSecurityGroups": [ | |
{ | |
"Status": "active", |
NewerOlder