This is pretty simple, lets dive in!
Find a name that isn't taken and clearly describes what your module is doing
$ npm view your-first-node-module
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true |
import Foundation | |
final class NetworkManager: NSObject, URLSessionDelegate { | |
func login() { | |
var request = URLRequest(url: URL(string: "https://b2vapi.bmwgroup.com/webapi/oauth/token/")!) | |
request.addValue("Content-Type", forHTTPHeaderField: "application/json") | |
request.httpMethod = "GET" | |
let session = URLSession(configuration: URLSessionConfiguration.default, delegate: self, delegateQueue: nil) | |
#!/bin/sh | |
# ============================================================================= | |
# Author: Chu-Siang Lai / chusiang (at) drx.tw | |
# Filename: teams-chat-post.sh | |
# Modified: 2018-03-28 15:04 | |
# Description: Post a message to Microsoft Teams. | |
# Reference: | |
# | |
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
# |
javascript:window.open(window.location.href+'#development=1','_self'); |
I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.
The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.
I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.
I’ve made this according to the installation instructions given on GetGrav.
A Pen by Mike Kormendy on CodePen.
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$max: 100; | |
@for $i from 1 through $max / 2 { | |
$value: $i * 2 - 1; | |
.test_#{$value} { index: $i; value: $value; } |
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$max: 100; | |
@for $i from 1 through $max / 2 { | |
$value: $i * 2 - 1; | |
.test_#{$value} { index: $i; value: $value; } |
# run_multiple_commands.py | |
import sublime, sublime_plugin | |
# Takes an array of commands (same as those you'd provide to a key binding) with | |
# an optional context (defaults to view commands) & runs each command in order. | |
# Valid contexts are 'text', 'window', and 'app' for running a TextCommand, | |
# WindowCommands, or ApplicationCommand respectively. | |
class RunMultipleCommandsCommand(sublime_plugin.TextCommand): | |
def exec_command(self, command): | |
if not 'command' in command: | |
raise Exception('No command name provided.') |