This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from datetime import datetime | |
from dotenv import load_dotenv | |
# Load environment variables from .env file | |
load_dotenv() | |
# Get GitHub API token from environment variable | |
github_token = os.getenv('GITHUB_TOKEN') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You're a senior developer specialized in SQL. Your job is to go through my db schema, and create comments for table defintion, so that the next developer knows what the SQL code is doing. | |
Write your comments in the following style: | |
```sql | |
-- The blog table stores information about blogs. | |
-- id: The unique identifier for the blog. | |
-- title: The title of the blog. It is a non-null field. | |
-- description: The description of the blog, which can be a large text. It is nullable. | |
-- created_at: The timestamp of when the blog was created. It has a default value of the current timestamp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feedparser | |
import time | |
def parse_feed(feed_url): | |
rss_feed = feedparser.parse(feed_url) | |
return rss_feed | |
def get_latest_entries(rss_feed, last_updated): | |
new_entries = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to run this use: https://jscomplete.com/repl | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
const Card = (props) => { | |
return ( | |
<div style={{margin: '1em'}}> | |
<img width="75" src={props.avatar_url} /> | |
<div style={{display: 'inline-block', marginLeft: 10}}> | |
<div style={{fontSize: '1.25em', fontWieght: 'bold'}}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detecting Barcodes in Images with Python and OpenCV | |
# OpenCV 3.0 | |
# http://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv/ | |
import numpy as np | |
import argparse | |
import cv2 | |
ap = argparse.ArgumentParser() | |
ap.add_argument("-i","--image", required = True, help="path to image file") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using ProtoBuf; | |
namespace TestProtoBufSerialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the alias below to ~/.bash_profile on a Mac | |
# Save the file and run: source ~/.bash_profile | |
# ASP.NET and Visual Studio Code on OS X | |
source dnvm.sh | |
export MONO_MANAGED_WATCHER=disabled | |
alias code='open $@ -a "Visual Studio Code"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Flat Colors */ | |
/* Greens */ | |
.color-turquoise | |
{ | |
color: turquoise; | |
} | |
.color-green-sea | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using iTextSharp.text.pdf; | |
namespace PDFExtract | |
{ | |
public class PDFExtractor | |
{ |