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 weasyprint import HTML, CSS | |
def get_page_body(boxes): | |
for box in boxes: | |
if box.element_tag == 'body': | |
return box |
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
$('.moment-fmt').each(function() { | |
var format = $(this).data('moment-fmt') || ''; | |
var date = $(this).data('moment') || ''; | |
if (date.length) { | |
date = moment.utc(date).local(); | |
if (format.length) { | |
$(this).text(date.format(format)); | |
} else { | |
$(this).text(date); | |
} |
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
'Change myRecordset to the recordset you want to dump | |
'Paste into Immediate | |
Set rec = myRecordset.Clone: rec.MoveFirst: Do Until rec.EOF: For Each f In rec.Fields: Debug.Print f.Name & " [" & f.Type & "](" & f.DefinedSize & "): " & f.Value: Next: Debug.Print "": rec.MoveNext: Loop: Set rec = Nothing |
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
// Facebook SDK | |
angular.module('facebook', []) | |
.directive('fb', ['$FB', function($FB) { | |
return { | |
restrict: "E", | |
replace: true, | |
template: "<div id='fb-root'></div>", | |
compile: function(tElem, tAttrs) { | |
return { | |
post: function(scope, iElem, iAttrs, controller) { |
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
public class Friend | |
{ | |
public String Id { get; set; } | |
public String Name { get; set; } | |
}; | |
private class Paging | |
{ | |
public String next { get; set; } |
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
.twitter-typeahead { | |
display: block !important; | |
} | |
.twitter-typeahead .tt-query, | |
.twitter-typeahead .tt-hint { | |
margin-bottom: 0; | |
} | |
.tt-hint { | |
display: block; | |
width: 100%; |
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 services = angular.module('services', []); | |
services.factory('catalog' ['$http', function($http) { | |
var catalog = {}; | |
catalog.init = function() { | |
return $http.get('/api/catalog').then(function (response) { | |
angular.extend(catalog, response.data); | |
}); | |
}; |
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
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Debugger | |
DisableAttachSecurityWarning=1 |
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
<?xml version="1.0"?> | |
<settings> | |
<console change_refresh="10" refresh="100" rows="50" columns="80" buffer_rows="9999" buffer_columns="0" shell="" init_dir="C:\code" start_hidden="0" save_size="0"> | |
<colors> | |
<color id="0" r="45" g="45" b="45"/> | |
<color id="1" r="102" g="153" b="204"/> | |
<color id="2" r="153" g="204" b="153"/> | |
<color id="3" r="102" g="204" b="204"/> | |
<color id="4" r="242" g="119" b="122"/> | |
<color id="5" r="204" g="153" b="204"/> |
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
PS1='\[\033[1;33m\]\W\[\033[1;37m\]`__git_ps1` \[\033[0m\]\n$ ' |
NewerOlder