This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"release": "2019.8.5", | |
"PuppetEnterpriseAgents": [ | |
{ | |
"name": "EL (RHEL, CentOS, Scientific Linux, Oracle Linux) 8 (x86_64)", | |
"type": "el", | |
"url": "https://pm.puppetlabs.com/puppet-agent/2019.8.5/6.21.1/repos/el/8/puppet6/x86_64/puppet-agent-6.21.1-1.el8.x86_64.rpm" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const csv = require("csvtojson"); | |
const fs = require('fs'); | |
csv() | |
.fromFile(`${__dirname}/dependencies.csv`) | |
.then((json)=>{ | |
// console.log(json); | |
const html = json.map(row => { | |
let repository = row.repository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define simple debounce https://davidwalsh.name/javascript-debounce-function | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; | |
if (!immediate) func.apply(context, args); | |
}; | |
var callNow = immediate && !timeout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function throttle(func, wait, options) { | |
var context, args, result; | |
var timeout = null; | |
var previous = 0; | |
if (!options) options = {}; | |
var later = function() { | |
previous = options.leading === false ? 0 : Date.now(); | |
timeout = null; | |
result = func.apply(context, args); | |
if (!timeout) context = args = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header.full-header { | |
$c-header: #fff; | |
$c-menu-trigger: #444; | |
$nav-font: $ff-bree; | |
width: 100%; | |
height: 100px; | |
&--transparent { | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#section-team-carousel { | |
padding: 25px 0; | |
background-color: #e1eef6; | |
border-top: solid 5px white; | |
border-bottom: solid 5px white; | |
.heading { | |
color: #2e2e2e; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ nicerink-website git:(develop) ✗ git status | |
On branch develop | |
Your branch is behind 'origin/develop' by 2 commits, and can be fast-forwarded. | |
(use "git pull" to update your local branch) | |
Changes not staged for commit: | |
(use "git add <file>..." to update what will be committed) | |
(use "git checkout -- <file>..." to discard changes in working directory) | |
modified: README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//controller import stuff | |
const pkg = require.main.require('../package.json'); | |
const mongoose = require('mongoose'); | |
const superagent = require('superagent'); | |
const Promise = require('bluebird'); | |
const _ = require('lodash'); | |
module.exports = getProfilePictures; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const https = require('https'); | |
const superagent = require('superagent'); | |
module.exports = { | |
index | |
} | |
function index(req, res, next) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WeatherController | |
{ | |
public function api() { | |
$city = 'Missoula'; | |
$state = 'MT'; | |
$weather = 'http://api.wunderground.com/api/28eb4ab328f37f10/conditions/q/' . $state . '/' . $city . '.json'; | |
// $apiKey = '28eb4ab328f37f10'; | |
$result = file_get_contents($weather); | |
$weather_array = json_decode($result, true); |
NewerOlder