From | To | Expression |
---|
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
angular.module('sf.virtualScroll').filter('pager', function(){ | |
return function(input, range, start){ | |
return input.slice(start, start+range); | |
}; | |
}); |
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 socket | |
import time | |
def time_connect(*args, **kwargs): | |
sock = socket.socket() | |
start = time.time() | |
sock.connect(*args, **kwargs) | |
end = time.time() | |
print end - start, 'seconds' | |
time_connect(('www.appspot.com', 80)) | |
time_connect(('ghs.googlehosted.com', 80)) |
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
h1 { | |
font-size: 140px; | |
font-weight: 300; | |
line-height: 140px; | |
margin: 0; | |
text-rendering: optimizeLegibility; | |
color: #fff; | |
text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15); | |
} |
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
# untrack | |
git update-index --assume-unchanged file.html | |
# track | |
git update-index --no-assume-unchanged file.html |
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
/* | |
enables conditional features without ngIf | |
<div> | |
<div data-keep="feature1,feature3"> | |
only users that have features 1 & 3 can see this | |
</div> | |
<div data-omit="feature2"> |
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
/** | |
* Example of using an angular provider to build an api service. | |
* @author Jeremy Elbourn ([email protected]) | |
*/ | |
/** Namespace for the application. */ | |
var app = {}; | |
/******************************************************************************/ |
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
@app.url_defaults | |
def versioned_url_for_static_file(endpoint, values): | |
if app.config['VERSION'] and ('static' == endpoint or '.static' == endpoint[-7:]): | |
filename = values.get('filename', None) | |
if filename: | |
param_name = '_v' | |
while param_name in values: | |
param_name = '_' + param_name | |
values[param_name] = app.config['VERSION'] |
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
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="> |
OlderNewer