Skip to content

Instantly share code, notes, and snippets.

View pixelastic's full-sized avatar

Tim Carry pixelastic

View GitHub Profile
@pixelastic
pixelastic / Answers
Last active January 9, 2018 07:46 — forked from aymorgan/Introduction
Guidance for implementing Algolia.generate_secured_api_key
# Answer
Thanks for the question, I'll do my best to guide you the best way I can.
I think you're very close to have a working implementation.
Algolia secured API keys are API keys with *hard* filters already embedded
inside. You generic Search API key will let you search through all the content
in your index, but when you create a secured API key, you create a specific
version of your search API key that can only search into a subset of records.
# _config.yml
# Note: Your API key will be read from an ENV variable
algolia:
application_id: 'your_application_id'
index_name:     'your_index_name'
# Gemfile
group :jekyll_plugins do
gem 'jekyll-algolia'
end
#h0 { background: green; }
#h1 { background: green; }
#h2 { background: green; }
#h3 { background: green; }
#h4 { background: green; }
#h5 { background: green; }
#h6 { background: green; }
#h7 { background: green; }
#h8 { background: green; }
#h9 { background: green; }

Keybase proof

I hereby claim:

  • I am pixelastic on github.
  • I am pixelastic (https://keybase.io/pixelastic) on keybase.
  • I have a public key ASAmzFoSza4qlRZW1m6R0AibTQ5cIR8J1gQk9OCQQ4By4go

To claim this, I am signing this object:

app.controller('controllerSearchClientCreateCataloguePromotions', function ($scope, $http) {
var defaultCode = {code:''};
$scope.defaultPromoCode = defaultCode;
// Default values
$scope.promoCodes = [{code:''}, {code:''}, {code:''}];
});
function() {
var test="ok";
// Should be correctly highlighted as a string
var test2="<div>{{value}}</div>";
// Should be foldable
function inner() {
console.log("test");
};
@pixelastic
pixelastic / .gitignore
Last active December 22, 2015 15:49
Téléchargement de toutes les conférences Paris Web 2012 au format audio. A écouter sans modération.
tmp
*part
*mp4
*m4a
@pixelastic
pixelastic / test
Created November 29, 2010 14:40
test
test
@pixelastic
pixelastic / test gist
Created November 29, 2010 13:34
test
test