Skip to content

Instantly share code, notes, and snippets.

Vohmyanin Sergey Vasilevich Delagen

View GitHub Profile
View angular-ios9-uiwebview.patch.js
/**
* ================== angular-ios9-uiwebview.patch.js v1.1.0 ==================
*
* This patch works around iOS9 UIWebView regression that causes infinite digest
* errors in Angular.
*
* The patch can be applied to Angular 1.2.0 1.4.5. Newer versions of Angular
* have the workaround baked in.
*
* To apply this patch load/bundle this file with your application and add a
View cordova-ios-disable-push.js
"use strict";
/*use in config.xml <hook type="after_platform_add" src="../path/to/cordova-ios-disable-push.js"/>*/
var fs = require("fs");
var path = require("path");
var COMMENT_KEY = /_comment$/;
function nonComments(obj) {
var newObj = {};
Object.keys(obj).forEach(function(key) {
if (!COMMENT_KEY.test(key)) {
View plugin-barcode-scanner hook for minSDK
"use strict";
var path = require("path");
var fs = require("fs");
module.exports = function(ctx) {
var q = ctx.requireCordovaModule("q");
var deferreds = [];
//note: https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/233
@Delagen
Delagen / create-iso.sh
Created Aug 10, 2017 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
View create-iso.sh
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@Delagen
Delagen / sams2.patch
Created Oct 22, 2017 — forked from V-Alexeev/sams2.patch
Patch for SAMS2 and Squid >= 3.2 (incomplete)
View sams2.patch
Index: src/samsredir.cpp
===================================================================
--- src/samsredir.cpp (revision 979)
+++ src/samsredir.cpp (working copy)
@@ -241,7 +241,7 @@
{
INFO ("Reason: Invalid fields count: " << fields.size());
INFO ("Output: " << line);
- cout << line << endl << flush;
+ cout << "ERR" << endl << flush;
View ng-loadchildren-loader.js
"use strict";
var _ = require("lodash");
var url = require("url");
var path = require("path");
var typescript = require("typescript");
var loaderUtils = require("loader-utils");
function /*jshint maxparams:5*/ getReplacements(fileName, fileContent, resolveModuleNameCallback, resolveModulePathCallback, resolveModuleChunkCallback) {
var tsTree = typescript.createSourceFile(fileName, fileContent, typescript.ScriptTarget.ES5, /*setParentNodes */ true);
var replacements = [];
View AngularVsReact.md

На случай важных переговоров

[11.01.18 18:47] [Forwarded from Алексей Охрименко]

  1. Google, Microsoft
  2. Typescript из коробки
  3. Единственный вреймворк с Dependency Injection из коробки
  4. Не нужно ничего React-ить и AngularJS-ифаить. Больше никаких оберток. jQuery плагины и D3 можно использовать на прямую
  5. Более современный фреймворк
You can’t perform that action at this time.