This file contains hidden or 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
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), |
This file contains hidden or 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
import java.nio.charset.StandardCharsets._ | |
import java.security._ | |
import javax.crypto._ | |
import javax.crypto.spec._ | |
import base64.Encode.{ apply => toBase64 } | |
import base64.Encode.{ urlSafe => toBase64UrlSafe } | |
import base64.Decode.{ apply => fromBase64 } | |
import base64.Decode.{ urlSafe => fromBase64UrlSafe } |
This file contains hidden or 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
# Community contributed script to import from GitHub to GitLab | |
# It imports repositories, issues and the wiki's. | |
# This script is not maintained, please send merge requests to improve it, do not file bugs. | |
# The issue import might concatenate all comments of an issue into one, if so feel free to fix this. | |
require 'bundler/setup' | |
require 'octokit' | |
require 'optparse' | |
require 'git' | |
require 'gitlab' |
This file contains hidden or 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
""" | |
This script was used to create the figures for http://jrsmith3.github.io/sample-logs-the-secret-to-managing-multi-person-projects.html from a PDF file containing some old CMU sample logs. | |
""" | |
import PyPDF2 | |
from wand.image import Image | |
import io | |
import os | |
This file contains hidden or 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
/** | |
* cryptojs use WordArray (CryptoJS.lib.WordArray) as parameter/result frequently. | |
* A WordArray object represents an array of 32-bit words. When you pass a string, | |
* it's automatically converted to a WordArray encoded as UTF-8. | |
*/ | |
var CryptoJS = require("crypto-js"); | |
// convert String to WordArray | |
var wordArray = CryptoJS.enc.Utf8.parse('Hello, World!'); |
This file contains hidden or 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
require 'httparty' | |
response= HTTParty.get('http://worldcup.sfg.io/matches') | |
# I'd recommend creating a little more spacing when declaring your variables | |
# it'll help for reading & editing the code (see below) | |
array = response.parsed_response | |
stadiums_hash = {} | |
winners_hash = {} |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
htmlcompressor: { | |
compile: { | |
files: { | |
//'index.min.html': 'index.html', | |
'views/landing-min/landing.min.html': 'views/landing-default/landing.html', | |
'views/landing-min/main.min.js': 'views/landing-default/main.min.js' | |
}, | |
options: { |
This file contains hidden or 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
''' | |
Simple LocustIO testing script with basic auth | |
''' | |
import random, gzip, StringIO, threading, urllib2, re, getpass | |
from locust import HttpLocust, TaskSet, task, web | |
from random import randint | |
from urlparse import urlparse | |
#resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999)) | |
USER_AGENTS = [ |
This file contains hidden or 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
// Sample event data for a proxy request | |
// { | |
// "resource": "Resource path", | |
// "path": "Path parameter", | |
// "httpMethod": "Incoming request's method name" | |
// "headers": {Incoming request headers} | |
// "queryStringParameters": {query string parameters } | |
// "pathParameters": {path parameters} | |
// "stageVariables": {Applicable stage variables} | |
// "requestContext": {Request context, including authorizer-returned key-value pairs} |
This file contains hidden or 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
{ | |
"id": "ASM1266318644653195264", | |
"json_claz": "Megam::Assembly", | |
"name": "injuries", | |
"components": [], | |
"tosca_type": "tosca.torpedo.centos", | |
"policies": [], | |
"inputs": [ | |
{ | |
"key": "domain", |