##Adding Swift Build System
- Open Sublime Text 3
- Go To
Preferences > Browse Packages... - Add a file named
Swift.sublime-buildinsidePackagesdirectory. - Copy the following script in
Swift.sublime-buildfile.
{
"shell_cmd": "xcrun swift $file",
| // | |
| // DataProviding.swift | |
| // GenericsDataSource | |
| // | |
| // Created by Frank Courville on 2019-05-09. | |
| // Copyright © 2019 iOS Coach Frank. All rights reserved. | |
| // | |
| import UIKit |
##Adding Swift Build System
Preferences > Browse Packages...Swift.sublime-build inside Packages directory.Swift.sublime-build file.{
"shell_cmd": "xcrun swift $file",
| #!/usr/bin/env ruby | |
| # gist: https://gist.github.com/3217498 | |
| # This script can be called from an Xcode 'Run Script' build phase at the | |
| # beginning of the build process, like this: | |
| # | |
| # ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
| # | |
| # This script should be placed in the same directory as your .xcodeproj |
| #!/usr/bin/python | |
| ''' | |
| Script to monitor live streams and send an Amazon SNS if the stream is down (and possibly take restorative action) | |
| Future: | |
| Black detect: ffmpeg -i out.mp4 -vf blackdetect -f null - | |
| Note the following doesn't seem to fully work without looking at the debug logs | |
| On live ffmpeg -y -i rtmp://cp30129.live.edgefcs.net/live/videoops-videoops@50541 -vf blackdetect -t 10 -loglevel debug -f null - | |
| ''' |
| #include <boost/program_options.hpp> | |
| #include <sstream> | |
| #include <fstream> | |
| #include <iterator> | |
| #include <algorithm> | |
| namespace po = boost::program_options; | |
| class Options | |
| { |
| function _common_section | |
| printf $c1 | |
| printf $argv[1] | |
| printf $c0 | |
| printf ":" | |
| printf $c2 | |
| printf $argv[2] | |
| printf $argv[3] | |
| printf $c0 | |
| printf ", " |
| #!/bin/bash | |
| f=$(pwd) | |
| mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi | |
| # fake argv and argc in bash | |
| argc=$#; argv[0]=$0 # argv[0] is a prog name | |
| for foo in $( seq $argc ) | |
| do |
| # | |
| # STL GDB evaluators/views/utilities - 1.03 | |
| # | |
| # The new GDB commands: | |
| # are entirely non instrumental | |
| # do not depend on any "inline"(s) - e.g. size(), [], etc | |
| # are extremely tolerant to debugger settings | |
| # | |
| # This file should be "included" in .gdbinit as following: | |
| # source stl-views.gdb or just paste it into your .gdbinit file |
| #!/usr/bin/python | |
| #gypify.py for GYP (http://code.google.com/p/gyp) | |
| #Found @ http://code.google.com/p/gyp/issues/detail?id=82 (Oct 1, 2009) | |
| #Download original @ http://gyp.googlecode.com/issues/attachment?aid=1601673567448205219&name=gypify.py&token=qm9EhXN3mZxrS1pniUgsh5nG6Bs%3A1328804204976 | |
| #Attached is a script that converts a set of existing Chromium-dependent | |
| #.sln and .vcproj files to .gyp. It currently supports executable, shared | |
| #library, static library and build event projects. The output .gyp file is | |
| #created by: |