Skip to content

Instantly share code, notes, and snippets.

.tiles article:nth-child(1) > .image:before,
.tiles article:nth-child(7n) > .image:before {
background-color: #7ecaf6;
}
.tiles article:nth-child(2) > .image:before,
.tiles article:nth-child(8n) > .image:before {
background-color: #f2849e;
}
@andretges
andretges / w1.js
Last active February 29, 2016 12:16
curl -v -XPOST -d @w1.json -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Bearer t-o-k-e-n' https://api.w1.ru/KiiioskApi/merchant
{
"PromoCode":"WLnAtQE",
"UserTypeId":"Personal",
"Url":"http://demo.kiiiosk.ru/",
"ResultUrl": "http://api.kiiiosk.ru/v1/callbacks/w1/payments/2/notify",
"Category": "WebDesign",
"CurrencyId": 643,
"Title": "demo.kiiiosk.ru",
@andretges
andretges / sublime.json
Last active December 18, 2016 08:02
Sublime config
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Schemes by carlcalderon/Calydon/Calydon light.tmTheme",
"folder_exclude_patterns":
[
"coverage",
"node_modules",
"vendor",
".git",
.directive "infinitescroll", ->
scope:
value: '=ngModel'
link: (scope, element, attrs) ->
element.append scope.value
# template
%infinitescroll{'ng-model' => 'data'}
# controller
@andretges
andretges / gist:9410870
Last active August 29, 2015 13:57
exports
mac:
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
alias bmm="bundle exec middleman"
export ANT_HOME=/usr/local/Cellar/ant/1.9.3/libexec
export ANDROID_HOME=/Users/heretge/adt-bundle-mac-x86_64-20131030/sdk
export SDK_ROOT=$ANDROID_HOME
export JAVA_HOME=/Library/Java/Home
export PATH=$PATH:$JAVA_HOME:$ANT_HOME:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
@andretges
andretges / smstrack.js
Last active January 2, 2016 14:39
sms-track
$('#line1, #line2').each(function(){
var x = $(this).find('div:first').width(90);
x.html(x.attr('h'));
});