Skip to content

Instantly share code, notes, and snippets.

View achanda101's full-sized avatar
🍷

Amrita Chanda achanda101

🍷
View GitHub Profile
@achanda101
achanda101 / wordle.js
Created February 11, 2022 09:54 — forked from SimeonGriggs/wordle.js
Sanity Schema for Wordle
import React from 'react'
import {withDocument} from 'part:@sanity/form-builder'
import {Stack, Card, Flex, Text} from '@sanity/ui'
import {format} from 'date-fns'
const WORD_LENGTH = 5
function Guess({char, answer, index}) {
const answerSplit = answer.split('')
let tone = `default`
@achanda101
achanda101 / .bashrc
Created December 31, 2021 07:38 — forked from BenDMyers/.bashrc
Bash function to create an Eleventy project
function el() {
mkdir "$1"
cd "$1"
git init
mkdir -p src/_data/
mkdir src/_includes/
# Populate .gitignore
echo "# Node" >> .gitignore
@achanda101
achanda101 / index.html
Created November 22, 2020 19:57
Low Quality Image Placeholders out of the box in sanity.io
<h1>Low Quality Image Placeholders out of the box in <a href="https://sanity.io/?utm_source=css-tricks&utm_campaign=csstricks">sanity.io</a></h1>
<p>Push <b>Rerun</b> to see the load effect again</p>
<div id="app">
<span id="loading">Loading...</span>
</div>
<footer>
<p>This is a demo of how to use structured content in <a href="https://sanity.io/?utm_source=css-tricks&utm_campaign=csstricks">sanity.io</a></p>
<p>Photos from <a href="https://unsplash.com">unsplash.com</a></p>
</footer>
@achanda101
achanda101 / serve.py
Last active August 29, 2015 14:21 — forked from nigma/serve.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import webbrowser
from threading import Timer
os.environ["DJANGO_SETTINGS_MODULE"] = "webapp.settings"
import cherrypy
@achanda101
achanda101 / serve.py
Last active August 29, 2015 14:20 — forked from nigma/serve.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import webbrowser
from threading import Timer
os.environ["DJANGO_SETTINGS_MODULE"] = "webapp.settings"
import cherrypy

#List of countries

It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.

List of nationalities

I've also compiled a list of nationalities

{% extends "admin/base_site.html" %}
{% load i18n admin_static admin_modify %}
{% load url from future %}
{% load admin_urls %}
{% block extrahead %}{{ block.super }}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
{{ media }}
{% endblock %}

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software