Skip to content

Instantly share code, notes, and snippets.

View yrezgui's full-sized avatar

Yacine Rezgui yrezgui

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GovernorHub</title>
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
<base href="/">
<link href="http://10.1.2.2:8080/assets/css/ionic-b5b8c208.css" rel="stylesheet">
<link href="http://10.1.2.2:8080/assets/css/ortoo-mobile-67f7332c.css" rel="stylesheet">
var mongodb = require('mongodb');
var client = mongodb.MongoClient;
var request = require('request');
var async = require('async');
var API_JOBS_URL = 'https://api.angel.co/1/jobs';
var MAX_CONCURRENT_WORKERS = 5;
function databaseConnect(callback) {
client.connect('mongodb://127.0.0.1:27017/shigoto', function(error, db) {
db.jobs.aggregate(
{ $match : {
salary_min : {
$gt : 1000,
$lt : 200000
}
}},
{ $project : {
title : 1,
salary_min : 1 ,
@yrezgui
yrezgui / gist:f03543e8f277c6099ccc
Last active August 29, 2015 14:02
Example of crawled page
{
"_id": "https://codio.com/s/blog/2014/03/hiring-more-javascript-engineers/",
"links": [
"https://codio.com/s/blog/2014/06/phonegap-integration-inside-codio/",
"https://codio.com/s/blog/2014/06/ungit/"
],
"assets": {
"images": [
"https://codio.com/s/apple-touch-icon-152x152-precomposed.png"
],
(function () {
'use strict';
var mod = angular.module('components.config', []);
mod.constant('Config', {
BUFFER_API_URL: 'https://api.bufferapp.com/1/',
BUFFER_CLIENT_ID: 'lufhdfkg4b3jkrbriu3hrb23urv3briu3rb3',
CONNECT_URL: 'https://bufferapp.com/oauth2/authorize',
@yrezgui
yrezgui / dashboard.html
Last active August 29, 2015 14:05
dashboard
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/public'));
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
Parse.initialize('xRSk4TUfoiIGn2TKgRBNyT3j1QEc9LmYBlQEpMC4', 'ghEDpILhDB0zVBXS8UkgZ1qGKjeohyDDzFtBXO8c');
@yrezgui
yrezgui / designer.html
Created October 29, 2014 23:26
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
mkdir icon.iconset
sips -z 16 16 icon.png --out icon.iconset/icon_16x16.png
sips -z 32 32 icon.png --out icon.iconset/icon_16x16@2x.png
sips -z 32 32 icon.png --out icon.iconset/icon_32x32.png
sips -z 64 64 icon.png --out icon.iconset/icon_32x32@2x.png
sips -z 128 128 icon.png --out icon.iconset/icon_128x128.png
sips -z 256 256 icon.png --out icon.iconset/icon_128x128@2x.png
sips -z 256 256 icon.png --out icon.iconset/icon_256x256.png
sips -z 512 512 icon.png --out icon.iconset/icon_256x256@2x.png