Skip to content

Instantly share code, notes, and snippets.

View vicb's full-sized avatar

Victor Berchet vicb

View GitHub Profile
@vicb
vicb / test
Last active May 24, 2024 11:53
test
@vicb
vicb / install-cf-gae-ssl.md
Created May 23, 2024 11:07 — forked from patmigliaccio/install-cf-gae-ssl.md
Configuring Cloudflare SSL/TLS certificates on Google App Engine

Configuring Cloudflare SSL/TLS on Google App Engine

Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.

Google App Engine - Custom Domains

Add Domains

Register the root domain with Google Cloud Platform at the following:

@vicb
vicb / custom.css
Created January 9, 2017 20:47
Inbox compact styles
/* https://github.com/andryou/Power-Google-Inbox/blob/master/ayinboxpre.js */
/* compact nav */
.lQ { /* left nav ul */ line-height: 25px !important; }
.cQ, .cN { /* left nav li */ padding-top: 0 !important; padding-bottom: 0 !important; }
.f0, .B0 { /* settings label list */ line-height: 28px !important; }
.rA, .cC, .i5 .Jz { /* settings label list icons */ margin-top: 0px !important; }
.gN, .io { /* menu list icons */ margin-top: 0px !important; }
/* compact */
@vicb
vicb / clean.dart
Created July 20, 2014 11:55
Archive merged branches
import 'dart:io';
import 'dart:async';
// Name for the master repo
var UPSTREAM = 'origin';
// Name of your fork
var REMOTE = 'vicb';
void main() {
@vicb
vicb / ex.dart
Last active August 29, 2015 14:02
Dart - JS
import "dart:js" as js;
import "dart:mirrors" as mirrors;
class JsProxy {
js.JsObject $js;
/// Creates the underlying JavaScript object from the [ctorFqn] and a list of [args]
JsProxy.proxy([String ctorFqn, List args = const []])
: this.proxyJsObj(
ctorFqn == null ?
@vicb
vicb / gist:8963078
Created February 12, 2014 19:44
ng.dart error
dart2js
Error occurred: /C:/Users/bwessels/WebstormProjects/angular.dart.tutorial-master/Chapter_01/web/packages/angular/core/scope.dart:74:1: Warning: 'Scope' doesn't implement 'containsValue'. Try adding an implementation of 'containsValue'. class Scope implements Map { ^^^^^ /C:/Program Files/dart/dart-sdk/lib/core/map.dart:109:8: Info: This is the method declaration. bool containsValue(Object value); ^^^^^^^^^^^^^ /C:/Users/bwessels/WebstormProjects/angular.dart.tutorial-master/Chapter_01/web/packages/angular/core/scope.dart:74:1: Warning: 'Scope' doesn't implement 'putIfAbsent'. Try adding an implementation of 'putIfAbsent'. class Scope implements Map { ^^^^^ /C:/Program Files/dart/dart-sdk/lib/core/map.dart:144:5: Info: This is the method declaration. V putIfAbsent(K key, V ifAbsent()); ^^^^^^^^^^^ /C:/Users/bwessels/WebstormProjects/angular.dart.tutorial-master/Chapter_01/web/packages/angular/core/scope.dart:74:1: Warning: 'Scope' doesn't implement 'addAll'. Try adding an implementation of 'addAll'. cl
@vicb
vicb / bench.php
Created January 28, 2013 09:33
Doctrine bench
<?php
class Bench
{
public static $cache;
public static $cachem;
public function __construct()
{
self::$cache = array('set' => true, 'tableize_set' => true);
@vicb
vicb / gist:3207019
Created July 30, 2012 13:45
Twig issue 792
<?php
// Update with your local path to the autoloader
require_once '../vendor/twig/twig/lib/Twig/Autoloader.php';
Twig_Autoloader::register();
$loader = new Twig_Loader_String();
$twig = new Twig_Environment($loader);
@vicb
vicb / config.yml
Created July 2, 2012 11:55
Form theming 2.1
twig:
form:
resources:
- '::form.html.twig'
@vicb
vicb / session.php
Created July 2, 2012 07:31
Session concurrency
<?php
// Native handlers
//ini_set('session.save_path', 'tcp://127.0.0.1:11211');
//ini_set('session.save_handler', 'memcache');
//ini_set('session.save_path', '127.0.0.1:11211');
//ini_set('session.save_handler', 'memcached');