Skip to content

Instantly share code, notes, and snippets.

View timothyis's full-sized avatar
🖤

Timothy timothyis

🖤
  • Universe 616
View GitHub Profile
@timothyis
timothyis / index.js
Created November 23, 2018 16:30
A Now v2 Node-Server Telegram bot for getting the temperature of a city, using Node.js and Express (based on https://scotch.io/tutorials/how-to-build-a-telegram-bot-using-nodejs-and-now)
var express = require("express");
var app = express();
var bodyParser = require("body-parser");
require("now-env")
const axios = require("axios");
let telegram_url = "https://api.telegram.org/bot" + process.env.TELEGRAM_API_TOKEN +"/sendMessage";
let openWeatherUrl = process.env.OPENWEATHER_API_URL;
app.use(bodyParser.json());
@timothyis
timothyis / .dockerignore
Last active August 1, 2018 16:48
Python starter application using Docker and deployed on Now (https://zeit.co/now)
*
!main.py

Hello

Testing something

@timothyis
timothyis / colors.sh
Created April 16, 2018 17:51
Color generation for Hyper theme previews
#!/usr/bin/env bash
clear
echo -e "\033[0mNC (No color)"
echo -e "\033[1;37mWHITE\t\033[0;30mBLACK"
echo -e "\033[0;34mBLUE\t\033[1;34mLIGHT_BLUE"
echo -e "\033[0;32mGREEN\t\033[1;32mLIGHT_GREEN"
echo -e "\033[0;36mCYAN\t\033[1;36mLIGHT_CYAN"
echo -e "\033[0;31mRED\t\033[1;31mLIGHT_RED"
echo -e "\033[0;35mPURPLE\t\033[1;35mLIGHT_PURPLE"
@timothyis
timothyis / example-hyper-plugin-readme.md
Last active December 7, 2017 00:41
An example of a hyper plugin readme for the Hyper Store

Hyper Plugin

A description of a Hyper plugin that describes a lot of things about what it does in a short time.

Example Image

Installation

A bunch of text about how to install, including:
With A line of code
and

@timothyis
timothyis / .hyper.js
Created September 4, 2017 11:13
.hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@timothyis
timothyis / keybase.md
Last active April 11, 2018 19:35
keybase.md

Keybase proof

I hereby claim:

  • I am timothyis on github.
  • I am timothyis (https://keybase.io/timothyis) on keybase.
  • I have a public key ASDeQfA9f4mOfkwOX62Qm7bdM6nqxYBAyMw37fStyZX20wo

To claim this, I am signing this object:

@timothyis
timothyis / gulpfile.babel.js
Last active August 13, 2022 23:36
Gulp 4, ES6 gulpfile example
// Gulp module imports
import {src, dest, watch, parallel, series} from 'gulp';
import del from 'del';
import livereload from 'gulp-livereload';
import sass from 'gulp-sass';
import minifycss from 'gulp-minify-css';
import jade from 'gulp-jade';
import gulpif from 'gulp-if';
import babel from 'gulp-babel';
import yargs from 'yargs';