This file contains 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
package org.example; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.KeyEvent; | |
public class Main extends JFrame { | |
public Main() { |
This file contains 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
import fs from 'fs' | |
function indexFixer(match, index) { | |
// 1. Remove bullets | |
// 2. Remove code format from method names | |
// 2. Add extra \n before Interfaces | |
const fixedIndex = index | |
.replace(/^\* /ugm, '') | |
.replace(/\[`(.+)`\](.+)/ug, '[$1]$2') | |
.replace(/\[Interfaces\]/u, '\n[Interfaces]') |
This file contains 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
0 verbose cli [ | |
0 verbose cli '/Users/aparajita/.fnm/node-versions/v15.0.1/installation/bin/node', | |
0 verbose cli '/Users/aparajita/.fnm/node-versions/v15.0.1/installation/bin/npm', | |
0 verbose cli 'publish', | |
0 verbose cli '--ignore-scripts', | |
0 verbose cli '--publish-branch', | |
0 verbose cli 'main', | |
0 verbose cli '--dry-run' | |
0 verbose cli ] | |
1 info using [email protected] |
This file contains 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
#!/bin/bash | |
localVersion=$(fnm ls | sort | tail -1 | perl -ne 'if (/.*(v\d+\.\d+\.\d+)/) { print "$1" }') | |
remoteVersion=$(fnm ls-remote | grep -E '.*v\d+\.\d+\.\d+' | tail -n 1 | perl -ne 'if (/^.*(v\d+\.\d+\.\d+)/) { print "$1" }') | |
if [[ "$remoteVersion" != "$localVersion" ]]; then | |
read -r -n 1 -p "Version $remoteVersion is available. Install it? [Y/n] " shouldInstall | |
echo | |
case "$shouldInstall" in |
This file contains 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
#!/usr/bin/env bash | |
# | |
# $1 - Source plugin path, must be on a local filesystem | |
# | |
# DEPENDENCIES | |
# | |
# This script relies on jq, a JSON parser. You can download | |
# it at https://stedolan.github.io/jq, or install via package | |
# managers such as brew or apt. |
This file contains 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
export default class AppDelegate extends UIResponder { // eslint-disable-line | |
applicationPerformFetchWithCompletionHandler(application, completionHandler) { | |
console.log('App is running in background') | |
// Check for new data | |
const newData = true | |
// If new data exists, initiate a local notification | |
if (newData) { | |
// Let the OS know that there were new data and complete the task |
This file contains 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
# Block facebook! | |
0.0.0.0 static.ak.fbcdn.net | |
0.0.0.0 www.connect.facebook.net | |
0.0.0.0 www.facebook.com | |
0.0.0.0 www.fbcdn.com | |
0.0.0.0 www.fbcdn.net | |
0.0.0.0 www.graph.facebook.com | |
0.0.0.0 www.login.facebook.com | |
0.0.0.0 www.s-static.ak.facebook.com | |
0.0.0.0 www.static.ak.connect.facebook.com |
This file contains 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
#!/usr/bin/env node | |
'use strict'; | |
const child_process = require('child_process'); | |
const format = require('util').format; | |
const fs = require('fs'); | |
const path = require('path'); | |
function parseOptions() { |
This file contains 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
#!/usr/bin/env node | |
"use strict"; | |
const child_process = require("child_process"); | |
const fs = require("fs"); | |
const help = `Usage: npmls.js [-gh|--help] [filter...] | |
** Requires Node >= 4 ** |
This file contains 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
`METHOD: A4D_Init{(inStartWebServer)} | |
` | |
`Part of Active4D, the ultimate 4D web environment | |
`Copyright © Aparajita Fishman, All Rights Reserved | |
C_BOOLEAN($1;$inStartWebServer) | |
If (Count parameters=0) | |
$inStartWebServer:=True | |
Else |
NewerOlder