Skip to content

Instantly share code, notes, and snippets.

@iangow
iangow / naics_code.R
Last active Aug 24, 2019
Code to rearrange NAICS codes
View naics_code.R
setwd("C:/Users/mjyje/OneDrive/RA work/vertically related industries")
library(readxl)
library(dplyr, warn.conflicts = FALSE)
library(tidyr)
library(stringr)
# Import input-output matrix ----
temp <- read_xlsx("IOUse_After_Redefinitions_PUR_2007_Detail.xlsx",
sheet = '2007', skip = 5)
View index.html
<input type="text" id="date" placeholder="mm/dd/yyyy">
<button class="pressy">validate</button>
View config-dns.sh
#!/bin/sh
apt-get install unbound unbound-host
curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.cache
rm /etc/unbound/unbound.conf
mv unbound.conf /etc/unbound/
chown -R unbound:unbound /var/lib/unbound
systemctl enable unbound
@wioefjj34
wioefjj34 / InternetMonitor_Raspi2.json
Last active Aug 24, 2019
A script from Raspi2 will periodically update the content here - this will be monitored by GApp Script and send alerts if required
@OmarAlbelbaisy
OmarAlbelbaisy / .gitignore
Created Aug 24, 2019
Git Ignore File for Android Studio Projects
View .gitignore
# Built application files
*.apk
*.ap_
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
@openpanzer
openpanzer / openpanzer-save.json
Last active Aug 24, 2019
Smolensk-Crossing the Dnepr-1
View openpanzer-save.json
{"scenario":{"name":"Smolensk-Crossing the Dnepr","maxTurns":23,"date":"1941-07-07T05:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{},"map":{"rows":28,"cols":38,"isLastRowPartial":false,"isLastColPartial":false,"map":[[{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":19,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":true,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":true,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAtta
View πŸ“Š Weekly development breakdown
TypeScript 14 hrs 45 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 89.5%
Other 52 mins β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.3%
JSON 16 mins β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.7%
YAML 14 mins β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.5%
Bash 7 mins β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.8%
View index.html
<div class="wrapper">
<div class="main">
<hr class="divider">
<h2>COMMON QUESTIONS</h2>
<button class="tbs-accordion tbs-btn tbs-btn-lg tbs-btn-outline-success waves-effect waves-light">WHATS INCLUDED?</button>
<div class="panel">
<div class="row">
<div class="columnings">
<div class="ingredients">
<img src="https://cdn.shopify.com/s/files/1/0954/4660/products/Beard_Honour_1800x1800.jpg?v=1560317563" alt="">
@me2resh
me2resh / attach_event_to_bucket_in_different_stack.sh
Last active Aug 24, 2019
Attach Event to a bucket in a different stack, Sometimes you need to attach an event to a bucket that don't exist in your project stack, You can run this shell script to achieve that
View attach_event_to_bucket_in_different_stack.sh
#!/bin/bash
# Get function ARN from stack
FUNCNAME="MyFunctionName"
FUNCARN=$(aws cloudformation describe-stacks \
--stack-name "Stack-Name" \
--query "Stacks[0].Outputs[?OutputKey==${FUNCNAME}].OutputValue" --output text
)
echo $FUNCARN
@openpanzer
openpanzer / openpanzer-save.json
Last active Aug 24, 2019
Kiev encirclement - Konotop-11
View openpanzer-save.json
{"scenario":{"name":"Kiev encirclement - Konotop","maxTurns":42,"date":"1941-09-24T04:00:00.000Z","atmosferic":0,"latitude":3,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{},"map":{"rows":39,"cols":43,"isLastRowPartial":false,"isLastColPartial":false,"map":[[{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":17,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isA
You can’t perform that action at this time.