Big overview of what's missing in Safari 7.1+ and iOS 8+ in terms of browser storage.
Updated May 25th 2016
export const refreshFrequency = 1000; | |
export const command = `ps axro \"%cpu,ucomm,pid\" \ | |
| sed -e 's/^[ \\t]*//g' -e 's/\\([0-9][0-9]*\\.[0-9][0-9]*\\)\\ /\\1\\%\\,/g' -e 's/\\ \\ *\\([0-9][0-9]*$\\)/\\,\\1/g' -e's/\\ \\ */\\_/g' \ | |
| awk 'FNR>1' \ | |
| head -n 3 \ | |
| awk -F',' '{ printf \"%s,%s,%d\\n\", $1, $2, $3}' \ | |
| sed -e 's/\\_/\\ /g'`; | |
const style = { |
try: | |
range = xrange # Python 2 | |
except NameError: | |
pass # Python 3 | |
def lazy_product(*iter_funcs, **kwargs): | |
""" | |
If f1, f2, ..., are functions which have no (required) arguments and | |
return iterables, then | |
lazy_product(f1, f2, ..., repeat=k) |
# Converts a JSONL file generated with telegram-history-dump (1) to CSV | |
# Usage: python telegram-csv.py <path to json file> <path to output csv file> | |
# Example: python telegram-csv.py Bob.json Bob.csv | |
# 1: https://github.com/tvdstaaij/telegram-history-dump | |
from datetime import datetime | |
import unicodecsv as csv | |
import json, sys | |
def get_isodate(msg): | |
date = msg.get("date", None) |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# tag primary folders =Tagname | |
# target them with #Tagname | |
# tag subfolders with @nickname | |
# target them with :nickname | |
# if no tagged folder exists but there's a matching folder name, that's used | |
# otherwise it will create folders based on :tags | |
# :tags can be strung together :bt:Drafts:testing for nesting | |
# Only one #Tag and one :path should exist in a file's tags |
/** | |
* ReactJS: JavaScript like you've always done it. | |
* | |
* This example renders your top ten most followed friends/followers, `filter`ing | |
* only your favorites, and putting a star on all verified accounts. | |
* | |
* With ReactJS, any time your data changes, the UI is always brought up to date | |
* automatically. If friends length changes, or followCount - it always shows what | |
* `render` describes. | |
*/ |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.http_path = "/" | |
css_dir = "" | |
sass_dir = "" | |
images_dir = "" | |
javascripts_dir = "" | |
output_style = :expanded | |
line_comments = false | |
preferred_syntax = :scss |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |