This file contains hidden or 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
\set QUIET ON | |
\timing on | |
\encoding unicode | |
\x auto | |
\pset null ∅ | |
\pset linestyle unicode | |
\pset border 2 | |
--\pset pager always |
This file contains hidden or 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
*|*:root:not([customizing]) { | |
--new-tab-height: 29px; | |
} | |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
*|*:root:not([customizing]) .tabbrowser-tab { | |
min-height: var(--new-tab-height) !important; | |
} |
This file contains hidden or 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
#!/bin/bash | |
# USAGE: bash install_bip_skin.sh https://amazfitwatchfaces.com/bip/view/id [version] | |
# bash install_bip_skin.sh https://amazfitwatchfaces.com/bip/view/8992 5b32bd | |
watchface_dir=/sdcard/Android/data/com.xiaomi.hm.health/files/watch_skin_local | |
mkdir -p tmp | |
curl $1 > tmp/amazfit.html 2> /dev/null | |
preview=`cat tmp/amazfit.html|grep '<meta property="og:image"'|head -n 1|tr -d '\r'|sed -e 's/.*content="\([^"]*\)".*/\1/g'` |
This file contains hidden or 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
#!/bin/bash | |
if [ -e manage.py ] | |
then | |
echo "Installing" | |
else | |
echo "Not django directory" | |
exit | |
fi |
This file contains hidden or 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 bpy | |
class PreviewPanel(bpy.types.Panel): | |
bl_label = "Material preview" | |
bl_space_type = "NODE_EDITOR" | |
bl_region_type = "UI" | |
@classmethod | |
def poll(cls, context): |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import argparse | |
import atexit | |
import collections | |
import itertools | |
import os | |
import signal |
This file contains hidden or 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
bgcolor=0 | |
silentpic=images/background-1280x800.jpg | |
tx=0 | |
ty=100 | |
tw=1280 | |
th=700 | |
text_x=800 | |
text_y=450 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from collections import namedtuple | |
from datetime import datetime, date, time, timedelta | |
from functools import partial | |
from django.db import models | |
from django.db.models.expressions import DateTime, Date | |
from django.utils import timezone |
This file contains hidden or 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
;(function (){ | |
"use strict"; | |
var el = document.createElement('DIV'); | |
if (Array.prototype.forEach) { | |
var coreForEach = Array.prototype.forEach; | |
var forEach = function(collection, fn) { | |
coreForEach.call(collection, fn); |
This file contains hidden or 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
var E = (function () { | |
var P = function(name, value) { | |
var name = name.split('='); | |
this.name = name[0]; | |
this.propname = name[1]; | |
this.value = value; | |
}; | |
return function(name, propname, value) { | |
return new P(name, propname, value); |