Skip to content

Instantly share code, notes, and snippets.

View sahwar's full-sized avatar
💭
https://twitter.com/ve4ernik

sahwar

💭
https://twitter.com/ve4ernik
View GitHub Profile
@sahwar
sahwar / meta-tags.md
Created June 4, 2020 02:36 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@sahwar
sahwar / mdb2sql.sh
Created June 4, 2020 02:34 — forked from turicas/mdb2sql.sh
Convert a MDB (Access) file to SQL
#!/bin/bash
# Convert a MDB file (Access) to SQL
# Needs mdbtools[http://mdbtools.sourceforge.net/]
# run 'aptitude install mdbtools' on Debian/Ubuntu
# Created by Álvaro Justen <https://github.com/turicas>
# License: GPLv2
mdb=$1
sql=$2
@sahwar
sahwar / eg.css
Created June 4, 2020 02:32 — forked from rshiva/eg.css
css for loading font
@font-face {
font-family: 'NovecentowideBookBold';
src: url('/assets/synthview_-_novecentowide-bold-webfont.eot');
src: url('/assets/synthview_-_novecentowide-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('/assets/synthview_-_novecentowide-bold-webfont.woff') format('woff'),
url('/assets/synthview_-_novecentowide-bold-webfont.ttf') format('truetype'),
url('/assets/synthview_-_novecentowide-bold-webfont.svg#NovecentowideBookBold') format('svg');
font-weight: normal;
font-style: normal;
@sahwar
sahwar / generic_operations.py
Created June 4, 2020 02:30 — forked from skanev/generic_operations.py
Data-Directed Programming Example Code
operations = {}
def get(name, types):
return operations.get((name,) + types)
def put(name, args, code):
operations[(name,) + args] = code
def apply_generic(name, *args):
types = tuple(map(type, args))
@sahwar
sahwar / README.md
Created June 4, 2020 02:29 — forked from dariusk/README.md
This lets you use the Wordnik API in Twine to get random nouns and adjectives. I didn't include verbs because conjugation sucks and I'm lazy.#TwineHacks

This Twine macro lets you use the Wordnik API to get random nouns and adjectives for your story.

See a demo in action here.

How to set it up

  • IMPORTANT FIRST STEP: you must have a Wordnik API key to use this! If you don't already have one, go here to register for an API key. If you do already have one, move on to the next step!
  • Paste the contents of the WordnikRandomWords.js file below into a new passage. Call the passage whatever you want, and add the tag "script" to it.
  • Modify the first line of the passage you just created so that instead of "var API_KEY = 'xxxxxxx'" you replace the x's with your actual API key you got from Wordnik.
@sahwar
sahwar / .zshrc
Created June 4, 2020 02:29 — forked from SlexAxton/.zshrc
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@sahwar
sahwar / tweet_dumper.py
Created June 4, 2020 02:28 — forked from brenorb/tweet_dumper.py
A Python 3.+ script to download all of a user's tweets into a csv.
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@sahwar
sahwar / tweet_dumper.py
Created June 4, 2020 02:27 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@sahwar
sahwar / tweetthreader.py
Created June 4, 2020 02:26 — forked from pratikone/tweetthreader.py
This script fetches and creates threads from twitter statuses of a twitter profile. A thread is a series of tweets created by replying to your own tweet.
import os
import re
import time
from collections import namedtuple
import codecs
import tweepy
import json
from datetime import datetime
from requests.exceptions import Timeout, ConnectionError
from requests.packages.urllib3.exceptions import ReadTimeoutError, ProtocolError
@sahwar
sahwar / frontendDevlopmentBookmarks.md
Created June 4, 2020 02:25 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.