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
package str | |
func UnixTimestamp() int64 { | |
return time.Now().Unix() | |
} | |
type FragmentCreator struct { | |
slug string | |
// timeNowUnix is only used in testing to override getting the current timestamp |
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
salt-run manage.down |
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
Homebrew build logs for aws-google-auth on elementary OS 5.0 Juno | |
Build date: 2019-09-23 19:30:15 |
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
# Demo of command line arguments | |
# ARGV[0]: First command line argument | |
# (not the executable name) | |
# ARGV is an array of strings | |
puts "Number of command line arguments: #{ARGV.size}" | |
ARGV.each_with_index {|arg, i| puts "Argument #{i}: #{arg}"} | |
# The executable name is available as PROGRAM_NAME | |
puts "Executable name: #{PROGRAM_NAME}" |
I hereby claim:
- I am endorama on github.
- I am endorama (https://keybase.io/endorama) on keybase.
- I have a public key ASAKweB5myH-17sUIf-UoqlzUNopDTCLTcUzK4hV3tW7kgo
To claim this, I am signing this object:
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 bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# SCRIPT="$(readlink --canonicalize-existing "$0")" | |
# SCRIPTPATH="$(dirname "$SCRIPT")" | |
# SCRIPTNAME="$(basename "$SCRIPT")" |
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
{ | |
[...] | |
addWithData: function(msg, data) { | |
var copy = angular.copy(data); | |
this.maskReserved(copy); | |
$log.debug(msg + ' :: ' + copy, type); | |
}, | |
maskReserved: function(obj) { |
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 application namespace ( this is window ) | |
this.Namespace = this.Namespace || {}; | |
(function() { | |
"use strict"; | |
function Foobar() {}; | |
var p = Foobar.prototype; // = new Object(); // to extend Foobar |
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() { | |
"use strict"; | |
var module = angular.module('foo'); | |
module.factory('fooFactory', [ | |
function() { | |
// Define the constructor function. | |
function FooClass() {} | |
NewerOlder