=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if [ -z "$(which convert)" ]; then | |
echo "Imagemagick is not installed, script will not work" | |
else | |
find . -type f -regex '\(.*\)\(jpg\|jpeg\|png\|svg\)' -print0 | while read -d $'\0' file | |
do | |
if [[ "$file" == *"@"* ]]; then | |
echo "$file is already converted. skipping" | |
else | |
base="${file%.*}" | |
extension="${file##*.}" |
// | |
// PrintLocalesController.m | |
// NSFormatterTest | |
// | |
// Created by Maciek Grzybowski on 02.04.2014. | |
// | |
#import "PrintLocalesController.h" | |
@interface PrintLocalesController () |
import { exec } from "child_process"; | |
import { readFile } from "fs"; | |
import { promisify } from "util"; | |
import semverLt from "semver/functions/lt"; | |
import semverClean from "semver/functions/clean"; | |
const execAsync = promisify(exec); | |
const readFileAsync = promisify(readFile); | |
/* |
console.assert = function (condition, message, args) { | |
const {check, funcCheck} = args; | |
let isConditionTrue = false; | |
(() => { | |
const checks = Array.isArray (condition) ? condition : [condition]; | |
checks.forEach (elem => { | |
isConditionTrue = check | |
? elem === check | |
: funcCheck ? funcCheck (elem) : false; |
function noopClass(fnClass, methods?) { | |
const listOfMethods = Object.getOwnPropertyNames(fnClass.prototype) | |
.filter(name => name !== "constructor"); | |
const mockClass = () => undefined; | |
listOfMethods.forEach((method: string) => { | |
mockClass.prototype[method] = () => undefined; | |
}); | |
return mockClass; | |
} |
import { FastifyInstance } from "fastify"; | |
import fastifyPlugin from "fastify-plugin"; | |
import uws from "uws"; | |
import ws from "ws"; | |
export type SocketHandler = typeof uws.Server | typeof ws.Server; | |
export type AllowedSocketOptions = "ws" | "uws"; | |
export interface IPluginOptions extends fastifyPlugin.PluginOptions { | |
library: AllowedSocketOptions; | |
} |
import * as Lint from "tslint"; | |
import * as ts from "typescript"; | |
export class Rule extends Lint.Rules.AbstractRule { | |
static FAILURE_STRING_XIT = "Calls to `xit` should be removed or fixed."; | |
static FAILURE_STRING_XDESC = "Calls to `xdescribe` should be removed or fixed."; | |
apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { | |
return this.applyWithFunction(sourceFile, walk); |
/** | |
* Created by jerome.nelson on 11/11/2015. | |
*/ | |
(function($, window) { | |
$.fn.mobileCategories = function (options) { | |
var first_link, settings; | |
settings = $.extend({ | |
elem: this, | |
breakpoint: 767, |