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
function printA() {
a = 64

Keybase proof

I hereby claim:

  • I am oncletom on github.
  • I am oncletom ( on keybase.
  • I have a public key ASDuZSGubIkd5hTeiDzH25-afDvVZ28OOyGUAR2v_Zo-mgo

To claim this, I am signing this object:

oncletom /
Last active Sep 21, 2016
Moving to


git clone /tmp/mv

# cd into the git repo you want to migrate
sh /tmp/mv/
oncletom /
Created Sep 17, 2016

nvm use v6
npm install
npm run electron

Should terminate after running with the following error:

oncletom / MyAngularCtrl.js
Last active Apr 19, 2016 — forked from fcamblor/DataLoader.js
Resolving promise multiple times
View MyAngularCtrl.js
'use strict';
.controller('PresentationsCtrl', function ($scope, $stateParams, SharedData) {
$scope.presentations = presentations;
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 = '';
var path = d3.geo.path();
var svg ="body").append("svg")
.attr("width", 960)
oncletom /
Last active Jan 27, 2016 — forked from jasssonpet/post
Apple TV - Sample App

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 /
Created Dec 11, 2015
babel + jsx + virtual-dom
nvm use 4

npm run build
node main.js
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.