Skip to content

Instantly share code, notes, and snippets.

View shreyanshp's full-sized avatar

Shreyansh Pandey shreyanshp

  • Somewhere close to ground!
View GitHub Profile
@eugene-yaroslavtsev
eugene-yaroslavtsev / chatgpt-prompt-sharing.ts
Last active April 7, 2024 05:00
ChatGPT prompt sharing app
schema.prisma
```
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
//
// CollapsibleStackView.swift
// TemplateApp
//
// Created by Andrei Terentiev on 4/3/22.
//
import Foundation
import SwiftUI
import UniformTypeIdentifiers
@jobdiogenes
jobdiogenes / demo-of-use-google-drive-sheets-in-r-with-google-colaboratory.ipynb
Last active November 29, 2022 02:54
Demo of use Google Drive/Sheets in R with Google Colaboratory.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sheremetyev
sheremetyev / jupyter.ipynb
Last active June 16, 2019 18:59
jupyter.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Vini2
Vini2 / SimpleDemoGA.java
Last active March 27, 2024 15:58
A simple implementation of a genetic algorithm
import java.util.Random;
/**
*
* @author Vijini
*/
//Main class
public class SimpleDemoGA {
@bahmutov
bahmutov / README.md
Last active October 4, 2023 08:35
Single command to run Node with local file access

Goal: run a simple NodeJS application inside a Docker container

Subgoal: give it access to local files.

docker run -it --rm --name example -v "$PWD":/usr/src/app -w /usr/src/app node:5-slim node index.js

output:

@beci
beci / gcc 5 on ubuntu 14.04
Created October 15, 2015 07:18
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
@gblnovaes
gblnovaes / gist:7308593
Created November 4, 2013 20:18
How to install google chrome stable
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable