I hereby claim:
- I am deriamis on github.
- I am deriamis (https://keybase.io/deriamis) on keybase.
- I have a public key ASC3gs2J0_XvYvHdG7HMSvIC0I32bQfvYgeCeUUGuf0Idwo
To claim this, I am signing this object:
diff --git a/plugins/pygments_code.rb b/plugins/pygments_code.rb | |
index 87d3cd6..3f2d489 100644 | |
--- a/plugins/pygments_code.rb | |
+++ b/plugins/pygments_code.rb | |
@@ -11,7 +11,9 @@ module HighlightCode | |
lang = 'objc' if lang == 'm' | |
lang = 'perl' if lang == 'pl' | |
lang = 'yaml' if lang == 'yml' | |
- str = pygments(str, lang).match(/<pre>(.+)<\/pre>/m)[1].to_s.gsub(/ *$/, '') #strip out divs <div class="highlight"> | |
+ if pygments(str, lang).match(/<pre>(.+)<\/pre>/m) != nil |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
# This script assumes a pre-installed Debian testing release, or at least one that | |
# has systemd 228 or newer installed. There should be no customizations to the server. | |
# We make some assumptions about static IP addresses and such. Make sure you read over | |
# this script to ensure it sets up something that will work on your network. | |
# An NTP server is set up with some good defaults for operating as a time source. | |
# The TACACS+ and RADIUS daemons are left unconfigured, as every network is different. |
/* See LICENSE file for copyright and license details. */ | |
#define NUMCOLORS 17 | |
/* appearance */ | |
static const char *fonts[] = { | |
"terminus:size=12" | |
}; | |
static const char dmenufont[] = "terminus:size=12"; | |
static const char normbordercolor[] = "#002b36"; | |
static const char selbgcolor[] = "#002b36"; |
/* See LICENSE file for copyright and license details. */ | |
/* | |
* appearance | |
* | |
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html | |
*/ | |
static char font[] = "Terminus:pixelsize=12:antialias=true:autohint=true"; | |
static int borderpx = 2; | |
#define histsize 2000 |
/* See LICENSE file for copyright and license details. */ | |
/* appearance */ | |
static const unsigned int borderpx = 1; /* border pixel of windows */ | |
static const unsigned int snap = 32; /* snap pixel */ | |
static const int showbar = 1; /* 0 means no bar */ | |
static const int topbar = 1; /* 0 means bottom bar */ | |
static const char *fonts[] = { "terminus:size=12" }; | |
static const char dmenufont[] = "terminus:size=12"; | |
static const char col_gray1[] = "#002b36"; |
// Sample file demonstrating my C coding style. | |
// | |
// Based on: | |
// https://gist.github.com/davidzchen/9187878 | |
// | |
// General rules: | |
// - Indents are four spaces. No tabs should be used anywhere. | |
// - Each line must be at most 80 characters long. | |
// - Comments can be // or /* but // is most commonly used. | |
// - File names should be lower_case.c or lower-case.c |
I hereby claim:
To claim this, I am signing this object:
import boto3 | |
import json | |
import urllib | |
import time | |
cloudfront_client = boto3.client('cloudfront') | |
def get_change_tracker(bucket): | |
tracker = None | |
try: |
import boto3 | |
import json | |
import urllib | |
import time | |
cloudfront_client = boto3.client('cloudfront') | |
def get_change_tracker(bucket): | |
tracker = None | |
try: |