Skip to content

Instantly share code, notes, and snippets.

View gnesher's full-sized avatar

Guy Nesher gnesher

View GitHub Profile
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
@gnesher
gnesher / index.html
Created December 5, 2017 14:46
html file
<!DOCTYPE html>
<html ng-app="nortec.fusionMulti">
<head profile="http://www.w3.org/2005/10/profile">
<!--base href="/FusionMulti/" /-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />-->
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src * data: gap: https://ssl.gstatic.com http://212.199.231.125 http://52.17.101.205/FusionService/api/Assets/PostPointAsset http://52.17.101.205/FusionService/api/Assets/PostLineAsset https://learn.its-training.com http://oblms.me 'unsafe-eval'; script-src 'self' https://maps.googleapis.com https://maps.google.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://onboard-lms-public.s3.amazonaws.com/styles/onboardlms.master.small.css; media-src *; font-src 'self' https://fonts.gstatic.com; img-src 'self' http://52.17.101.205 https://*.base.maps.cit.api.here.com https://*.aerial.maps.cit.api.here.com data: https://csi.gst
@gnesher
gnesher / webpack.config.js
Created December 5, 2017 14:35
our webpack build
module.exports = {
context: __dirname + '/scripts',
entry: "./app.ts",
output: {
filename: "./www/scripts/appBundle.js",
},
resolve: {
extensions: [".tsx", ".ts", ".js"]
},
devServer: {
const $ = cheerio.load(body),
cards = $("div[class*=card__product___apps]")
cards.each((i, card) => {
console.log(card.children("div[class*=author__product___apps]").text);
console.log(card.children("a").attribs.href);
});
@gnesher
gnesher / test
Created January 2, 2014 16:52
stack trace, cram after upgrade from 0.7.7 to 0.7.10
(conversocial)vagrant@precise64:~/conversocial/frontend$ node_modules/.bin/cram static/app/run.js build-options.json --output static/app/run.js
warning: grokking "static/app/run.js": Did not inspect code inside `.then()` callback(s).
`appRoot` is inferred to be "static/app"
`baseUrl` resolved to "/home/vagrant/conversocial/frontend/static/app/static"
`output` resolved to "/home/vagrant/conversocial/frontend/static/app/run.js"
Compiling preloads
cram failed: Cannot use 'in' operator to search for 'poly/array' in undefined
TypeError: Cannot use 'in' operator to search for 'poly/array' in undefined
at /home/vagrant/conversocial/frontend/node_modules/cram/cram.js:358:43
at Array.some (native)
window.WebApp.factory('loginService', ['$rootScope', 'OAuth', '$location', 'cookies', ($rootScope, OAuth, $location, cookies) ->
@refresh_token = cookies.get('refresh_token')
@user_id = cookies.get('user_id')
# No user cradentials, redirect to login
if (@refresh_token == null or @user_id == null)
$location.path('/login')
User = {}