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
''' | |
Created on Aug 28, 2014 | |
@author: tomahawk28@gmail.com | |
''' | |
def atoi(string): | |
list_string = list(string)[::-1] | |
decimal = 0 | |
ret = 0 |
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
#author jihyuk.bok <jihyuk-bok@jdsu.com> | |
#content To check actual version of firmware in working source directory | |
#!usr/bin/perl -w | |
use strict; | |
use warnings; | |
my $ver = ""; | |
while(<>) { | |
if (/^#.+[ \t].+LKII.+[ \t]+\"(.+)\"/) { | |
$ver = $1; |
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
package main | |
import ( | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { | |
r io.Reader |
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
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
func main() { | |
random_array := make([]int, 1000000) | |
for random_number := range random_array { |
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
package main | |
import "fmt" | |
type Trie struct { | |
branch map[byte]*Trie | |
leaf bool | |
} | |
func NewTrie() *Trie { |
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
package main | |
import "fmt" | |
const ( | |
hashsize = 511 | |
) | |
type Entry struct { | |
key string |
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 copy | |
def sumVal(d): | |
sum = 0 | |
for k in d: | |
sum += k * d[k] | |
return sum |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
apiVersion: application.giantswarm.io/v1alpha1 | |
kind: App | |
metadata: | |
name: "my-cool-prometheus" | |
labels: | |
app: "prometheus" | |
giantswarm.io/cluster: "6iec4" | |
giantswarm.io/organization: "giantswarm" | |
giantswarm.io/service-type: "managed" |
OlderNewer