// jQuery
$(document).ready(function() {
// code
})
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
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| /* | |
| A slightly more automated approach to BEM modifier classes: | |
| using '&' parent selector interpolation, modifiers extend their bases, | |
| so that HTML markup requires only the modifier class not the base *and* modifier | |
| */ |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
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
| // ---- | |
| // Sass (v3.3.4) | |
| // Compass (v1.0.0.alpha.18) | |
| // ---- | |
| // Capitalize string | |
| // -------------------------------------------------------------------------------- | |
| // @param [string] $string | |
| // -------------------------------------------------------------------------------- | |
| // @return [string] |
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
| /** | |
| * Converts an XML string to a JSON object, using logic similar to the | |
| * sunset method Xml.parse(). | |
| * @param {string} xml The XML to parse. | |
| * @returns {Object} The parsed XML. | |
| */ | |
| function xmlToJson(xml) { | |
| var doc = XmlService.parse(xml); | |
| var result = {}; | |
| var root = doc.getRootElement(); |
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
| 'use strict'; | |
| var adSenseTpl = '<div id="adsenses-ad-1"><ins class="adsbygoogle"' + | |
| 'style="display:inline-block;width:336px;height:280px"' + | |
| 'data-ad-client="ca-pub-000000000000000000"' + | |
| 'data-ad-slot="00000000000"></ins></div>'; | |
| var adsenseAd1; | |
| angular.module('MyApp') |
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
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
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
| # http://blog.konstantinpavlov.net/2015/01/17/hexo-useful-tips/ | |
| # If you want your tags and categories on your language and the URLs still look nice in ASCII, | |
| # you may use tag_map and category_map parameters in _config.yml file of your blog. | |
| # You can even set one URL prefix for two different tags. | |
| tag_map: | |
| tag1: supertag | |
| по-русски: in-russian | |
| fun: fun and jokes | |
| jokes: fun and jokes |
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
| {% comment %} | |
| # | |
| # I modified the original code from http://anjesh.github.io/2015/01/25/collection-pagination-working-github-pages/ | |
| # | |
| # Make a collection in _config.yml and create the folder _your_collection in your root. | |
| # | |
| # collections: | |
| # your_collection: | |
| # output: true | |
| # permalink: /:collection/:title/ |