Skip to content

Instantly share code, notes, and snippets.

View yanneves's full-sized avatar

Yann イーベス Eves yanneves

View GitHub Profile
function exportFileToPNG(dest, artBoardIndex)
{
var exportOptions = new ExportOptionsPNG24(); // or ExportOptionsPNG8
var type = ExportType.PNG24; // or ExportType.PNG8
var file = new File(dest + ".png");
exportOptions.artBoardClipping = true;
exportOptions.antiAliasing = true;
exportOptions.transparency = true;
exportOptions.qualitySetting = 72;
@remy
remy / gist:2972478
Last active October 6, 2015 09:28
Student discounts on Full Frontal
Dear student,
I was a student once and I realise most of your budget is
set aside for booze. Our conference pass is £150+vat -
but £180 if you're paying yourself. Maybe that's too much
for you to afford, so how about a 50% discount and no VAT?
I've got 10 tickets available at £75.
It's first come first serve, but they're available today -
@nelsonpecora
nelsonpecora / autofillDirective.js
Last active December 31, 2015 06:19
Hacky directive that "fixes" autofill
// autofill catcher (super hacky, abandon all hope ye who enter here --np)
app.directive('autofill', ['$timeout', function($timeout) {
return {
restrict: 'A',
require: 'ngModel',
link: function( scope, elem, attrs ) {
var ownInput = false;
// trigger an input 500ms after loading the page (fixes chrome and safari autofill)
$timeout(function() {
@derekdon
derekdon / recruitment_psl_at_london_banks.txt
Last active April 28, 2018 12:25
Preferred recruitment agency placing frontend devs at various London based banks. (Unofficial)
Standard Chartered Bank
- ScopeAT
RBS
- RedCat Digital
HSBC
- Resource Solutions
BAML
- TEKsystems for certain projects
DB
- Elliott (El) Luckhurst @ DB
@almost
almost / async-await-lightning-talk.md
Last active September 12, 2019 09:07
Reactive 2015 Lightning Talk Proposal: Pyramids be gone!: ES7 Async Function

This is a proposal for a lightning talk at the Reactive 2015 conference.

NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut! You could also Retweet if you want :)

Pyramids be gone!

ES7 Async Functions

JavaScript is getting async functions (or already has them if you count Babel.JS) and with them a way to finally slay the evil pyramid. This new language feature lets you write asynchronous code that almost looks synchronous, while maintaining the same semantics as promises. This lets you shed your .then and .catch boilerplate and escape those nested callbacks in favour of clean, explicit, maintainable code.

@almost
almost / proposal.md
Last active September 12, 2019 09:07
Reactive 2016 Lightning Talk Proposal: Get Flow

This is a proposal for a lightning talk at the Reactive 2016 conference.

NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut! You could also Retweet if you want :)

Get Flow

Type checking JavaScript with Flow

JavaScript is a dynamic language, and there's nothing wrong with that. It allows quick iteration and lowers barriers. However, sometimes some compile-time type checking is just what you need to keep your code in line and give yourself the confidence to build bigger and faster. Flow gives the best of both worlds. You can have normal JavaScript but you can also add types where they're helpful, and it adds zero cost at runtime. In this talk I'll show Flow as it applies to a Redux & React codebase.

@aheckmann
aheckmann / output
Last active January 21, 2020 10:12
Mongoose 3.6 population example
===========
mongoose version: 3.6.0rc0
========
dbname: testing_populateAdInfinitum
[ { title: 'blog 1',
author:
{ _id: 511bde3e3985283f25000004,
@3v1n0
3v1n0 / gpControl.json
Last active November 2, 2020 22:05
GoPro Hero4 Remote tools
{
"version":2.0,
"display_hints":[
{
"key":"GPCAMERA_GROUP_VIDEO",
"display_name":"Video Settings",
"settings":[
{
"setting_id":5,
"widget_type":"select",
var express = require('express'),
request = require('request'),
BufferList = require('bufferlist').BufferList,
sys = require('sys');
var app = express.createServer(
express.logger(),
express.bodyDecoder()
);
@hhimanshu
hhimanshu / .Functional Programming in Scala Exercises
Last active September 19, 2021 16:58
Functional Programming in Scala Exercises
All exercises are attempted on https://coderpad.io