Skip to content

Instantly share code, notes, and snippets.

View idkjs's full-sized avatar

Alain Armand idkjs

View GitHub Profile
@idkjs
idkjs / One Page CSS Navigation.markdown
Created May 4, 2016 18:31
One Page CSS Navigation
import express from 'express';
import schema from './data/schema';
import GraphGQLHTTP from 'express-graphql';
import {MongoClient} from 'mongodb';
let app = express();
app.use(express.static('public'));
@idkjs
idkjs / gist:1a24d90885e8bc7ce8e70c64e043662f
Created May 20, 2016 13:20
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@idkjs
idkjs / pullJSON.js
Created May 22, 2016 15:03 — forked from varun-raj/pullJSON.js
Google App Script To Fetch Data From JSON Webservice and Write them to google spreadsheet.
function pullJSON() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheets = ss.getSheets();
var sheet = ss.getActiveSheet();
var url="http://example.com/feeds?type=json"; // Paste your JSON URL here
var response = UrlFetchApp.fetch(url); // get feed
var dataAll = JSON.parse(response.getContentText()); //
May 26 16:43:28 Alains-MacBook-Pro syslogd[17775]: --- syslogd restarted ---
May 26 16:43:28 Alains-MacBook-Pro syslogd[17775]: Configuration Notice:
ASL Module "com.apple.appinstallation" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
May 26 16:43:28 Alains-MacBook-Pro syslogd[17775]: Configuration Notice:
ASL Module "com.apple.authkit.asl" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
May 26 16:43:29 --- last message repeated 1 time ---
May 26 16:43:28 Alains-MacBook-Pro syslogd[17775]: Configuration Notice:
Last login: Thu May 26 18:35:02 on ttys000
Alains-MacBook-Pro:react-native-store-locator klik$ npm install
npm WARN EPACKAGEJSON StoreLocator@0.0.1 No repository field.
npm WARN EPACKAGEJSON StoreLocator@0.0.1 No license field.
Alains-MacBook-Pro:react-native-store-locator klik$ npm start
> StoreLocator@0.0.1 start /Users/klik/projects/react-native-store-locator
> node node_modules/react-native/local-cli/cli.js start
┌────────────────────────────────────────────────────────────────────────────┐
@idkjs
idkjs / functional-utils.js
Created June 12, 2016 13:57 — forked from bendc/functional-utils.js
A set of pure and immutable ES2015 functions aimed to make functional JavaScript more idiomatic.
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)
@idkjs
idkjs / beers.json
Last active September 30, 2016 15:19
Beer Data - JSON Format
{
"value": [
{
"@search.action": "upload",
"id": 1,
"name": "Ahool Ale",
"activelyBrewed": "true",
"ibu": 33,
"abv": 5.4,
"flavors": "biscuity",
@idkjs
idkjs / breweries.json
Last active September 30, 2016 15:24
Breweries Data - JSON
{
"value": [
{
"@search.action": "upload",
"id": "Ek4mwsBoe",
"name": "Southern Hemisphere Brewco",
"description": "",
"slogan": "",
"breweryType": "micro",
"latitude": 39.923429,
@idkjs
idkjs / console output
Created October 22, 2016 09:20
sketchimport console output
## Console output
```
Last login: Sat Oct 22 09:41:06 on console
klik:~ klik$ cd Projects/
klik:Projects klik$ cd FuseProjects/
klik:FuseProjects klik$ fuse create app sketchimport
Created project: 'sketchimport' at '/Users/klik/Projects/FuseProjects/sketchimport'
klik:FuseProjects klik$ cd sketchimport/
klik:sketchimport klik$ open .
klik:sketchimport klik$ fuse import /Users/klik/Projects/FuseProjects/sketchimport/iOS\ 10\ UI\ Kit\ i6.sketch