Skip to content

Instantly share code, notes, and snippets.

@Delagen
Delagen / AngularVsReact.md
Created December 19, 2019 12:40 — forked from irustm/AngularVsReact.md
Angular vs React

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

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

  1. Google, Microsoft
  2. Typescript из коробки
  3. Единственный вреймворк с Dependency Injection из коробки
  4. Не нужно ничего React-ить и AngularJS-ифаить. Больше никаких оберток. jQuery плагины и D3 можно использовать на прямую
  5. Более современный фреймворк
@Delagen
Delagen / sams2.patch
Created October 22, 2017 11:55 — forked from V-Alexeev/sams2.patch
Patch for SAMS2 and Squid >= 3.2 (incomplete)
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;
@Delagen
Delagen / create-iso.sh
Created August 10, 2017 18:30 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/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
/**
* ================== 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