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 | |
target="${1:-/Applications}" | |
check() { | |
stat "$1/Contents/Frameworks/Electron Framework.framework" &> /dev/null | |
if [[ $? = 0 ]]; then | |
echo "$1 uses Electron" | |
fi | |
} |
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 | |
# Simple script by chris1111 | |
# Vars | |
apptitle="Trim Enabler Catalina" | |
version="1.0" | |
# Set Icon directory and file | |
iconfile="/System/Library/CoreServices/Expansion Slot Utility.app/Contents/Resources/AppIcon.icns" | |
# Select Trim Choice |
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
#include "AppDelegate.h" | |
#include "GeneratedPluginRegistrant.h" | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
[GeneratedPluginRegistrant registerWithRegistry:self]; | |
// Override point for customization after application launch. | |
FlutterViewController* controller = (FlutterViewController*)self.window.rootViewController; |
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
-- | |
-- Project: Install IPA to Simulator | |
-- Author: Jeffrey Jia | |
-- Date: 2017 年 9 月 26 日 | |
-- | |
on open fileList | |
repeat with theFilePath in fileList | |
set fileInfo to info for file theFilePath | |
if name of fileInfo ends with ".ipa" then |
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
<html> | |
<!-- Twitter’s widgets JavaScript For optimal web page performance & tracking widget JS events --> | |
<script>window.twttr = (function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0], | |
t = window.twttr || {}; | |
if (d.getElementById(id)) return t; | |
js = d.createElement(s); | |
js.id = id; | |
js.src = "https://platform.twitter.com/widgets.js"; | |
fjs.parentNode.insertBefore(js, fjs); |
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
//importing Twitter JS Client dependancy | |
module.exports = require('./lib/Twitter'); | |
// VARIBALES | |
var express = require('express'); | |
var OAuth2 = require('oauth').OAuth2; | |
var https = require('https'); | |
var app = express(); | |
var bodyParser = require('body-parser'); |
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
<!--View on JSFiddle: https://jsfiddle.net/DARZO27/01q4jeht/2/--> | |
<html> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-sanitize.js"></script> | |
<body> | |
<div ng-app="myApp" ng-controller="myCtrl"> | |
<p ng-bind-html="myText"></p> |
iTerm2 - the popular terminal emulator for OSX has added some really neat features. One of those, is badges. From the documentation: A badge is a large text label that appears in the top right of a terminal session to provide dynamic status, such as the current host name or git branch.
I had some trouble figuring out how to build a badge so I wanted to share a quick walk-through. Thanks to Chris Mar for teaching me.
Easy enough - it's an option on the dropdown menu
NewerOlder