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
| diff --git a/lyfe-mobile/openx_proto/openx_proto.pb.go b/lyfe-mobile/openx_proto/openx_proto.pb.go | |
| index 2f2f102..e6db8cf 100644 | |
| --- a/lyfe-mobile/openx_proto/openx_proto.pb.go | |
| +++ b/lyfe-mobile/openx_proto/openx_proto.pb.go | |
| @@ -631,6 +631,44 @@ func (m *User) GetExt() []*ExtKeyValue { | |
| return nil | |
| } | |
| +type App struct { | |
| + id *string `protobuf:"bytes,1,opt,name=idb" json:"id,omitempty"` |
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
| % ./sleeper & | |
| [1] 6078 | |
| % ./sleeper | |
| [1] + 6078 running ./sleeper |
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 startupErr error | |
| startupTimeoutChan := make(chan bool) | |
| go func() { | |
| for i := 5; i >= 0; i-- { | |
| time.Sleep(time.Second) | |
| startupTimeoutChan <- i == 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
| module.exports = function() { | |
| console.log("In base constructor."); | |
| } | |
| module.exports.prototype.myfunc = function() { | |
| console.log("This is the base."); | |
| } |
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 Benchmark = require('benchmark'); | |
| var suite = new Benchmark.Suite; | |
| var req = { | |
| someProperty: "some value" | |
| }; | |
| var property = "someProperty"; | |
| var notAProperty = "someProperty"; |
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
| using namespace std; | |
| #include <algorithm> | |
| #include <iostream> | |
| #include <iterator> | |
| #include <numeric> | |
| #include <sstream> | |
| #include <fstream> | |
| #include <cassert> | |
| #include <climits> | |
| #include <cstdlib> |
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
| describe('proxy', function () { | |
| it('context', function () { | |
| const sandbox = { | |
| p: new Proxy.ProviderProxy('hey') | |
| } | |
| const context = new vm.createContext(sandbox) | |
| const script = new vm.Script('value = p._get()') | |
| script.runInContext(context) | |
| expect(sandbox.value).to.equal('hey') | |
| }) |
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
| from scapy.all import * | |
| INPUTFILE = "rmp.imps" | |
| for pkt in PcapReader(INPUTFILE): | |
| if TCP in pkt: | |
| length = pkt[IP].len-40 | |
| if length > 0: | |
| ack = pkt[TCP].ack # Acknowledged sequence number seq = pkt[TCP].seq # Packet sequence number ip_src=pkt[IP].src | |
| ip_dst=pkt[IP].dst |
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
| calc.Dimension = &[2]map[string]*int32{ | |
| { | |
| "dim1": i(31), | |
| "dim2": i(37), | |
| "dim3": i(41), | |
| "dim4": i(43), | |
| }, | |
| { | |
| "dim5": i(47), | |
| "dim6": i(53), |
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
| Private Sub Worksheet_Change(ByVal Target As Range) | |
| If Target.Cells.Count > 1 Then Exit Sub | |
| Application.EnableEvents = False | |
| If Target.Column = 4 Or Target.Column = 5 Or Target.Column = 6 Then | |
| Target.Value = Target.Value * 0.22 | |
| End If | |
| Application.EnableEvents = True | |
| End Sub |