1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| port module Spelling exposing (..) | |
| import Html exposing (..) | |
| import Html.App as App | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (..) | |
| import String | |
| main = |
| const electron = require('electron'); | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| class Store { | |
| constructor(opts) { | |
| // Renderer process has to get `app` module via `remote`, whereas the main process can get it directly | |
| // app.getPath('userData') will return a string of the user's app data directory path. | |
| const userDataPath = (electron.app || electron.remote.app).getPath('userData'); | |
| // We'll use the `configName` property to set the file name and path.join to bring it all together as a string |
| var GitHubApi = require("github"); | |
| var user = "kn9ts"; | |
| var pullRequests = []; | |
| var github = new GitHubApi({ | |
| // optional | |
| debug: false, | |
| protocol: "https", | |
| host: "api.github.com", // should be api.github.com for GitHub | |
| pathPrefix: "", // for some GHEs; none for GitHub | |
| timeout: 5000, |
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))In this tutorial, I briefly explain how to set up a webserver using nginx, openssl and uwsgi on Arch Linux. The tutorial is applicable to other Linux distributions and goes through the required configuration step by step. It is, I believe, beginner friendly.
I updated, changed and tested the tutorial on Dec. 8th, 2013. All commands and
configuration files relate to the software versions that are currently available
in the Arch package repositories. Especially nginx and uwsgi change often and
Linked from: http://sailsjs.org/documentation/reference/web-sockets/sails-sockets/broadcast
In an action, service, or arbitrary script on the server:
| import * as models from "models"; | |
| import Sequelize from "sequelize"; | |
| import fs from "fs"; | |
| delete models.default; | |
| const sequelize = new Sequelize( | |
| '', | |
| '', | |
| '', { |