Skip to content

Instantly share code, notes, and snippets.

Thomas Parisot oncletom

Block or report user

Report or block oncletom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View after-fonctionnel.js
const variables = []
function isDuplicate(program, index, programs) {
return programs.slice(i+1).contains(p => {
return p.program.genrePressCode !== program.program.genrePresseCode
})
}
function mapProgram({language, idChannel}) {
return (program) => ({
View script.js
// 'use strict';
a = 32
printA()
function printA() {
console.log(a)
}
a = 64
View keybase.md

Keybase proof

I hereby claim:

  • I am oncletom on github.
  • I am oncletom (https://keybase.io/oncletom) on keybase.
  • I have a public key ASDuZSGubIkd5hTeiDzH25-afDvVZ28OOyGUAR2v_Zo-mgo

To claim this, I am signing this object:

@oncletom
oncletom / README.md
Last active Sep 21, 2016
Moving github.com/bbcrd to github.com/bbc
View README.md

Install

git clone https://gist.github.com/2c78ec6e6de6a243ef32ec4a70e35a8b.git /tmp/mv


# cd into the git repo you want to migrate
sh /tmp/mv/run.sh
@oncletom
oncletom / README.md
Created Sep 17, 2016
electron#7217 FATAL:audio_manager_base.cc
View README.md

FATAL:audio_manager_base.cc

nvm use v6
npm install
npm run electron

Should terminate after running with the following error:

@oncletom
oncletom / MyAngularCtrl.js
Last active Apr 19, 2016 — forked from fcamblor/DataLoader.js
Resolving promise multiple times
View MyAngularCtrl.js
'use strict';
angular.module('voxxrin')
.controller('PresentationsCtrl', function ($scope, $stateParams, SharedData) {
Promise.all(SharedData.loadPresentationsForEventPromises($stateParams.eventId)).then(function(presentations){
$scope.presentations = presentations;
});
});
@oncletom
oncletom / index.js
Created Jan 29, 2016
requirebin sketch
View index.js
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d3 = require('d3');
var geoJSONUrl = 'https://cdn.rawgit.com/gregoiredavid/france-geojson/master/regions.geojson';
var path = d3.geo.path();
var svg = d3.select("body").append("svg")
.attr("width", 960)
@oncletom
oncletom / post.md
Last active Jan 27, 2016 — forked from jasssonpet/post
Apple TV - Sample App
View post.md

Running the NativeScript Runtime for iOS on Apple TV

Last week Apple announced amongst many new things an update to Apple TV. It now runs on a new operating system named tvOS and includes an app store allowing third-party apps. These apps can be developed using many frameworks and concepts quite familiar to the iOS ones (Foundation, UIKit and CoreGraphics), but also includes some new APIs like TVServices.

We were eager to find out if it was possible to run NativeScript on this new device.

Building the NativeScript Runtime for tvOS

The NativeScript runtime for iOS uses CMake to ease the build configuration process. All we had to do in order to make our build (which includes the JavaScriptCore engine) Apple TV compatible, was to add two more platforms in our config scripts:

set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimul
@oncletom
oncletom / README.md
Created Dec 11, 2015
babel + jsx + virtual-dom
View README.md
nvm use 4

npm run build
node main.js
@oncletom
oncletom / Gulpfile.js
Last active Jan 6, 2017
gulp -> npm scripts only
View Gulpfile.js
'use strict';
var pkg = require('./package.json');
var gulp = require('gulp');
var utils = require('gulp-util');
var source = require('vinyl-source-stream');
var isWatching = false;
var isProduction = process.env.NODE_ENV === 'production';
You can’t perform that action at this time.