Skip to content

Instantly share code, notes, and snippets.

View MichaelCurrin's full-sized avatar

Michael Currin MichaelCurrin

  • The Netherlands
View GitHub Profile
@bobthecow
bobthecow / radio_mustach_example.html
Created March 5, 2012 15:23 — forked from ebaxt/radio_mustach_example.html
Checking radio with Mustache
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
</head>
<body>
<div id="formWrapper">
@fitorec
fitorec / twitterGetReplies.py
Created December 22, 2009 06:24
Mostrando NUM replicas del twitter util pa intregrar al conky
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Copyright GNU/GPL 3.0 Fitorec <chanerec@gmail.com>
# twitterGetReplies.py
# ____ _ _ .--.
# | __ |(_) | | ___ ____ ___ ____ | o_o |
# | | _ | ||_ _|/ _ \ / __// _ \ / __/ | :_/ |
# | __ || | | || (_) || | | __/| (__ // \ \
# |_| |_| | | \___/ |_| \___/ \___( (| | )
# http://fitorec.wordpress.com /'\_ _/
@suriyadeepan
suriyadeepan / scrape_hashtags.py
Created September 13, 2016 08:07
Selenium based Twitter Scrapper
from bs4 import BeautifulSoup
import requests
import time
import sys
import os
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
@Nashpratim
Nashpratim / PY0101EN-2-4-Sets.ipynb
Created December 2, 2020 14:19
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DirtyF
DirtyF / README.md
Last active April 11, 2021 17:24
Setup Jekyll on macOS with brew and rbenv - See https://jekyllrb.com/docs/installation/macos/

First, make sure you have command line tools installed:

xcode-select --install

Then open Terminal.app and type:

curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/fbc736fa1b50bd637929a315e6803df306c8bc8e/setup-rbenv.sh | bash
@deptno
deptno / fragment.ts
Created June 25, 2018 02:53
graphql-tag fragment example
import gql from 'graphql-tag'
const FRAGMENT_REPOSITORY = gql`
fragment repository on Repository {
name
url
createdAt
description
descriptionHTML
labels {
@yzhong52
yzhong52 / send_an_email.py
Created May 18, 2014 19:54
Send an email with a gmail account using python 3
# smtplib module send mail
import smtplib
TO = 'recipient@mailservice.com'
SUBJECT = 'TEST MAIL'
TEXT = 'Here is a message from python.'
# Gmail Sign In
gmail_sender = 'sender@gmail.com'
@witooh
witooh / graphicsmagick.sh
Created February 1, 2015 17:42
Install Graphicsmagick
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:rwky/graphicsmagick
sudo apt-get update
sudo apt-get install graphicsmagick
@johndevs
johndevs / get-all-files.gql
Last active March 19, 2022 20:54
Github GraphQL - Get all file contents in repository
# Provide $query as a variable.
# The query is the same as you would enter into the search field e.g. "org:johndevs in:name feedreader"
query GetFilesQuery($branch: GitObjectID, $query: String!) {
search(first: 1, type: REPOSITORY, query: $query) {
edges {
node {
... on Repository {
object(expression: "master:", oid: $branch) {
... on Tree {
@mjs
mjs / fib.rs
Created August 25, 2017 01:54
Fibonacci sequence generation done in 3 ways using Rust
const ITERS: usize = 20;
fn print_fib(n: usize) {
let mut x = (1, 1);
for i in 0..n {
println!("{}: {}", i, x.0);
x = (x.1, x.0 + x.1)
}
}