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
| #... | |
| gem 'backup', require: false, | |
| github: 'kavu/backup', | |
| branch: 'bump_fog_version', | |
| ref: 'c3fd8e6eb4f464de1c8' | |
| gem 'whenever', require: false | |
| #... |
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 | |
| /* | |
| #cgo CFLAGS: -x objective-c | |
| #cgo LDFLAGS: -framework Cocoa | |
| #import <Cocoa/Cocoa.h> | |
| int | |
| StartApp(void) { | |
| [NSAutoreleasePool new]; |
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
| pragma solidity 0.5.5; | |
| contract TxPermission { | |
| /// Allowed transaction types mask | |
| uint32 constant None = 0; | |
| uint32 constant All = 0xffffffff; | |
| uint32 constant Basic = 0x01; | |
| uint32 constant Call = 0x02; | |
| uint32 constant Create = 0x04; | |
| uint32 constant Private = 0x08; |
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
| dimwishlist:item=614426548&perks=2827049491,269888150,2030760728,3913600130 | |
| dimwishlist:item=614426548&perks=2827049491,269888150,1749209109,3913600130 | |
| dimwishlist:item=614426548&perks=3666208348,269888150,1749209109,3913600130 | |
| dimwishlist:item=614426548&perks=938542991,269888150,1749209109,3913600130 | |
| dimwishlist:item=614426548&perks=2827049491,269888150,2590710093,3913600130 | |
| dimwishlist:item=614426548&perks=3666208348,269888150,2590710093,3913600130 | |
| dimwishlist:item=614426548&perks=938542991,269888150,2590710093,3913600130 |
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 'net/http' | |
| require 'json' | |
| class Net::HTTP::Patch < Net::HTTPRequest | |
| METHOD = 'PATCH' | |
| REQUEST_HAS_BODY = true | |
| RESPONSE_HAS_BODY = true | |
| end | |
| url = URI.parse('https://api.github.com/user') |
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
| // ПоПацански.cpp : Defines the entry point for the console application. | |
| // | |
| // #include "stdafx.h" | |
| #define подъёбку setlocale | |
| #define чуть_чуть 7 | |
| #define так_себе 12 | |
| #define пошло_оно_всё 120 |
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
| #!/bin/sh | |
| grep -Roh --exclude-dir=target 'target: "[^"]*",' parity | sed -n 's/target: \("[^"]*"\),/\1/p' | sed -n 's/"//pg' | sort | uniq |
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
| #!/bin/sh | |
| # So you've installed XCode 6 Beta | |
| # Now we could use Swift toolchain to build a minimal | |
| # command line Hellow World | |
| # let's set new Developer Toolchain bundled with Xcode6-Beta.app | |
| # as default toolchain | |
| # sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer | |
| # alias for Swift binary |
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
| VERSION := $(shell git describe --tags | sed -e 's/^v//g' | awk -F "-" '{print $$1}') | |
| ITERATION := $(shell git describe --tags --long | awk -F "-" '{print $$2}') | |
| GO_VERSION=$(shell gobuild -v) | |
| GO := $(or $(GOROOT),/usr/lib/go)/bin/go | |
| PROCS := $(shell nproc) | |
| cores: | |
| @echo "cores: $(PROCS)" | |
| test: | |
| go test -v | |
| bench: |
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
| func IsInSlice(slice []int, searching int) bool { | |
| intSlice := make(sort.IntSlice, len(slice)) | |
| copy(intSlice, slice) | |
| sort.Sort(intSlice) | |
| return sort.SearchInts(intSlice, searching) < len(slice) | |
| } |
NewerOlder