Skip to content

Instantly share code, notes, and snippets.

View ashok-arora's full-sized avatar

Ashok Arora ashok-arora

View GitHub Profile
@ashok-arora
ashok-arora / update_git_repos.sh
Last active November 16, 2017 13:36 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\e[1mPulling in latest changes for all repositories...\e[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int good = 0;
FILE *fp = fopen("input.txt","r");
char str[4092];
@ashok-arora
ashok-arora / index.html
Created April 29, 2020 13:47 — forked from CodeMyUI/index.html
Search field animation
<div>
<div class="search">
<div class="bar">
<div class="icon">
<i></i>
</div>
</div>
<form>
<input type="text">
</form>

Accessing a Docker container

Step 1: Run a container using an existing image

ashok@Ashoks-Mac-mini ~ % docker run --name p39 -it python:3.9-slim
Python 3.9.9 (main, Dec 21 2021, 06:58:41)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>