Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
thejohnfreeman / instructions.md
Last active January 5, 2023 02:15
Semantic UI fonts with Webpack in a Chrome extension

To get Semantic UI fonts working:

  1. npm install semantic-ui-css

  2. Import 'semantic-ui-css/semantic.css' in your entry script. The exact syntax for this varies depending on your chosen module format: import for ES6, require for CommonJS, etc. This tells Webpack to pull the CSS into your bundle.

  3. npm install --save-dev style-loader css-loader

@wassen
wassen / ProgressBar.py
Last active February 16, 2016 03:58
プログレスバー表示するモジュール
# -*- coding: utf-8 -*-
import sys
import time
class ProgressBar:
MAX_LENGTH_OF_BAR = 30
@classmethod
def single_generator(cls,iterable):
(1..1000000).reduce { |a, e| a = "#{a * e}".sub(/\d*?(\d{0,9})0*$/, '\1').to_i }
@koseki
koseki / too-many-markers.md
Last active June 8, 2021 05:35
Google Maps に大量のマーカを表示する

Google Maps に大量のマーカを表示する - Too Many Markers!

のメモです。

Introduction

Some applications are required to display a large number of locations or markers. Despite the v3 JavaScript API's significant improvement to performance, naively plotting thousands of markers on a map can quickly lead to a degraded user experience. Too many markers on the map cause both visual overload and sluggish interaction with the map.

@tako2
tako2 / theta360.py
Created December 1, 2013 14:13
Controlls RICOH THETA 360 (Python).
#!/usr/bin/env python
# coding: UTF-8
import socket
import struct
DEBUG = True
DEBUG2 = False
PTP_OC_GetDeviceInfo = 0x1001
@andyferra
andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {